private Amazon.Outposts.Model.UpdateSiteAddressResponse CallAWSServiceOperation(IAmazonOutposts client, Amazon.Outposts.Model.UpdateSiteAddressRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "AWS Outposts", "UpdateSiteAddress");
     try
     {
         #if DESKTOP
         return client.UpdateSiteAddress(request);
         #elif CORECLR
         return client.UpdateSiteAddressAsync(request).GetAwaiter().GetResult();
         #else
                 #error "Unknown build edition"
         #endif
     }
     catch (AmazonServiceException exc)
     {
         var webException = exc.InnerException as System.Net.WebException;
         if (webException != null)
         {
             throw new Exception(Utils.Common.FormatNameResolutionFailureMessage(client.Config, webException.Message), webException);
         }
         throw;
     }
 }
 public object Execute(ExecutorContext context)
 {
     var cmdletContext = context as CmdletContext;
     // create request
     var request = new Amazon.Outposts.Model.UpdateSiteAddressRequest();
     
     
      // populate Address
     var requestAddressIsNull = true;
     request.Address = new Amazon.Outposts.Model.Address();
     System.String requestAddress_address_AddressLine1 = null;
     if (cmdletContext.Address_AddressLine1 != null)
     {
         requestAddress_address_AddressLine1 = cmdletContext.Address_AddressLine1;
     }
     if (requestAddress_address_AddressLine1 != null)
     {
         request.Address.AddressLine1 = requestAddress_address_AddressLine1;
         requestAddressIsNull = false;
     }
     System.String requestAddress_address_AddressLine2 = null;
     if (cmdletContext.Address_AddressLine2 != null)
     {
         requestAddress_address_AddressLine2 = cmdletContext.Address_AddressLine2;
     }
     if (requestAddress_address_AddressLine2 != null)
     {
         request.Address.AddressLine2 = requestAddress_address_AddressLine2;
         requestAddressIsNull = false;
     }
     System.String requestAddress_address_AddressLine3 = null;
     if (cmdletContext.Address_AddressLine3 != null)
     {
         requestAddress_address_AddressLine3 = cmdletContext.Address_AddressLine3;
     }
     if (requestAddress_address_AddressLine3 != null)
     {
         request.Address.AddressLine3 = requestAddress_address_AddressLine3;
         requestAddressIsNull = false;
     }
     System.String requestAddress_address_City = null;
     if (cmdletContext.Address_City != null)
     {
         requestAddress_address_City = cmdletContext.Address_City;
     }
     if (requestAddress_address_City != null)
     {
         request.Address.City = requestAddress_address_City;
         requestAddressIsNull = false;
     }
     System.String requestAddress_address_ContactName = null;
     if (cmdletContext.Address_ContactName != null)
     {
         requestAddress_address_ContactName = cmdletContext.Address_ContactName;
     }
     if (requestAddress_address_ContactName != null)
     {
         request.Address.ContactName = requestAddress_address_ContactName;
         requestAddressIsNull = false;
     }
     System.String requestAddress_address_ContactPhoneNumber = null;
     if (cmdletContext.Address_ContactPhoneNumber != null)
     {
         requestAddress_address_ContactPhoneNumber = cmdletContext.Address_ContactPhoneNumber;
     }
     if (requestAddress_address_ContactPhoneNumber != null)
     {
         request.Address.ContactPhoneNumber = requestAddress_address_ContactPhoneNumber;
         requestAddressIsNull = false;
     }
     System.String requestAddress_address_CountryCode = null;
     if (cmdletContext.Address_CountryCode != null)
     {
         requestAddress_address_CountryCode = cmdletContext.Address_CountryCode;
     }
     if (requestAddress_address_CountryCode != null)
     {
         request.Address.CountryCode = requestAddress_address_CountryCode;
         requestAddressIsNull = false;
     }
     System.String requestAddress_address_DistrictOrCounty = null;
     if (cmdletContext.Address_DistrictOrCounty != null)
     {
         requestAddress_address_DistrictOrCounty = cmdletContext.Address_DistrictOrCounty;
     }
     if (requestAddress_address_DistrictOrCounty != null)
     {
         request.Address.DistrictOrCounty = requestAddress_address_DistrictOrCounty;
         requestAddressIsNull = false;
     }
     System.String requestAddress_address_Municipality = null;
     if (cmdletContext.Address_Municipality != null)
     {
         requestAddress_address_Municipality = cmdletContext.Address_Municipality;
     }
     if (requestAddress_address_Municipality != null)
     {
         request.Address.Municipality = requestAddress_address_Municipality;
         requestAddressIsNull = false;
     }
     System.String requestAddress_address_PostalCode = null;
     if (cmdletContext.Address_PostalCode != null)
     {
         requestAddress_address_PostalCode = cmdletContext.Address_PostalCode;
     }
     if (requestAddress_address_PostalCode != null)
     {
         request.Address.PostalCode = requestAddress_address_PostalCode;
         requestAddressIsNull = false;
     }
     System.String requestAddress_address_StateOrRegion = null;
     if (cmdletContext.Address_StateOrRegion != null)
     {
         requestAddress_address_StateOrRegion = cmdletContext.Address_StateOrRegion;
     }
     if (requestAddress_address_StateOrRegion != null)
     {
         request.Address.StateOrRegion = requestAddress_address_StateOrRegion;
         requestAddressIsNull = false;
     }
      // determine if request.Address should be set to null
     if (requestAddressIsNull)
     {
         request.Address = null;
     }
     if (cmdletContext.AddressType != null)
     {
         request.AddressType = cmdletContext.AddressType;
     }
     if (cmdletContext.SiteId != null)
     {
         request.SiteId = cmdletContext.SiteId;
     }
     
     CmdletOutput output;
     
     // issue call
     var client = Client ?? CreateClient(_CurrentCredentials, _RegionEndpoint);
     try
     {
         var response = CallAWSServiceOperation(client, request);
         object pipelineOutput = null;
         pipelineOutput = cmdletContext.Select(response, this);
         output = new CmdletOutput
         {
             PipelineOutput = pipelineOutput,
             ServiceResponse = response
         };
     }
     catch (Exception e)
     {
         output = new CmdletOutput { ErrorResponse = e };
     }
     
     return output;
 }