in modules/AWSPowerShell/Cmdlets/QConnect/Basic/Invoke-QCMessageTemplate-Cmdlet.cs [959:1719]
public object Execute(ExecutorContext context)
{
var cmdletContext = context as CmdletContext;
// create request
var request = new Amazon.QConnect.Model.RenderMessageTemplateRequest();
// populate Attributes
var requestAttributesIsNull = true;
request.Attributes = new Amazon.QConnect.Model.MessageTemplateAttributes();
Dictionary<System.String, System.String> requestAttributes_attributes_CustomAttribute = null;
if (cmdletContext.Attributes_CustomAttribute != null)
{
requestAttributes_attributes_CustomAttribute = cmdletContext.Attributes_CustomAttribute;
}
if (requestAttributes_attributes_CustomAttribute != null)
{
request.Attributes.CustomAttributes = requestAttributes_attributes_CustomAttribute;
requestAttributesIsNull = false;
}
Amazon.QConnect.Model.AgentAttributes requestAttributes_attributes_AgentAttributes = null;
// populate AgentAttributes
var requestAttributes_attributes_AgentAttributesIsNull = true;
requestAttributes_attributes_AgentAttributes = new Amazon.QConnect.Model.AgentAttributes();
System.String requestAttributes_attributes_AgentAttributes_agentAttributes_FirstName = null;
if (cmdletContext.AgentAttributes_FirstName != null)
{
requestAttributes_attributes_AgentAttributes_agentAttributes_FirstName = cmdletContext.AgentAttributes_FirstName;
}
if (requestAttributes_attributes_AgentAttributes_agentAttributes_FirstName != null)
{
requestAttributes_attributes_AgentAttributes.FirstName = requestAttributes_attributes_AgentAttributes_agentAttributes_FirstName;
requestAttributes_attributes_AgentAttributesIsNull = false;
}
System.String requestAttributes_attributes_AgentAttributes_agentAttributes_LastName = null;
if (cmdletContext.AgentAttributes_LastName != null)
{
requestAttributes_attributes_AgentAttributes_agentAttributes_LastName = cmdletContext.AgentAttributes_LastName;
}
if (requestAttributes_attributes_AgentAttributes_agentAttributes_LastName != null)
{
requestAttributes_attributes_AgentAttributes.LastName = requestAttributes_attributes_AgentAttributes_agentAttributes_LastName;
requestAttributes_attributes_AgentAttributesIsNull = false;
}
// determine if requestAttributes_attributes_AgentAttributes should be set to null
if (requestAttributes_attributes_AgentAttributesIsNull)
{
requestAttributes_attributes_AgentAttributes = null;
}
if (requestAttributes_attributes_AgentAttributes != null)
{
request.Attributes.AgentAttributes = requestAttributes_attributes_AgentAttributes;
requestAttributesIsNull = false;
}
Amazon.QConnect.Model.SystemAttributes requestAttributes_attributes_SystemAttributes = null;
// populate SystemAttributes
var requestAttributes_attributes_SystemAttributesIsNull = true;
requestAttributes_attributes_SystemAttributes = new Amazon.QConnect.Model.SystemAttributes();
System.String requestAttributes_attributes_SystemAttributes_systemAttributes_Name = null;
if (cmdletContext.SystemAttributes_Name != null)
{
requestAttributes_attributes_SystemAttributes_systemAttributes_Name = cmdletContext.SystemAttributes_Name;
}
if (requestAttributes_attributes_SystemAttributes_systemAttributes_Name != null)
{
requestAttributes_attributes_SystemAttributes.Name = requestAttributes_attributes_SystemAttributes_systemAttributes_Name;
requestAttributes_attributes_SystemAttributesIsNull = false;
}
Amazon.QConnect.Model.SystemEndpointAttributes requestAttributes_attributes_SystemAttributes_attributes_SystemAttributes_CustomerEndpoint = null;
// populate CustomerEndpoint
var requestAttributes_attributes_SystemAttributes_attributes_SystemAttributes_CustomerEndpointIsNull = true;
requestAttributes_attributes_SystemAttributes_attributes_SystemAttributes_CustomerEndpoint = new Amazon.QConnect.Model.SystemEndpointAttributes();
System.String requestAttributes_attributes_SystemAttributes_attributes_SystemAttributes_CustomerEndpoint_customerEndpoint_Address = null;
if (cmdletContext.CustomerEndpoint_Address != null)
{
requestAttributes_attributes_SystemAttributes_attributes_SystemAttributes_CustomerEndpoint_customerEndpoint_Address = cmdletContext.CustomerEndpoint_Address;
}
if (requestAttributes_attributes_SystemAttributes_attributes_SystemAttributes_CustomerEndpoint_customerEndpoint_Address != null)
{
requestAttributes_attributes_SystemAttributes_attributes_SystemAttributes_CustomerEndpoint.Address = requestAttributes_attributes_SystemAttributes_attributes_SystemAttributes_CustomerEndpoint_customerEndpoint_Address;
requestAttributes_attributes_SystemAttributes_attributes_SystemAttributes_CustomerEndpointIsNull = false;
}
// determine if requestAttributes_attributes_SystemAttributes_attributes_SystemAttributes_CustomerEndpoint should be set to null
if (requestAttributes_attributes_SystemAttributes_attributes_SystemAttributes_CustomerEndpointIsNull)
{
requestAttributes_attributes_SystemAttributes_attributes_SystemAttributes_CustomerEndpoint = null;
}
if (requestAttributes_attributes_SystemAttributes_attributes_SystemAttributes_CustomerEndpoint != null)
{
requestAttributes_attributes_SystemAttributes.CustomerEndpoint = requestAttributes_attributes_SystemAttributes_attributes_SystemAttributes_CustomerEndpoint;
requestAttributes_attributes_SystemAttributesIsNull = false;
}
Amazon.QConnect.Model.SystemEndpointAttributes requestAttributes_attributes_SystemAttributes_attributes_SystemAttributes_SystemEndpoint = null;
// populate SystemEndpoint
var requestAttributes_attributes_SystemAttributes_attributes_SystemAttributes_SystemEndpointIsNull = true;
requestAttributes_attributes_SystemAttributes_attributes_SystemAttributes_SystemEndpoint = new Amazon.QConnect.Model.SystemEndpointAttributes();
System.String requestAttributes_attributes_SystemAttributes_attributes_SystemAttributes_SystemEndpoint_systemEndpoint_Address = null;
if (cmdletContext.SystemEndpoint_Address != null)
{
requestAttributes_attributes_SystemAttributes_attributes_SystemAttributes_SystemEndpoint_systemEndpoint_Address = cmdletContext.SystemEndpoint_Address;
}
if (requestAttributes_attributes_SystemAttributes_attributes_SystemAttributes_SystemEndpoint_systemEndpoint_Address != null)
{
requestAttributes_attributes_SystemAttributes_attributes_SystemAttributes_SystemEndpoint.Address = requestAttributes_attributes_SystemAttributes_attributes_SystemAttributes_SystemEndpoint_systemEndpoint_Address;
requestAttributes_attributes_SystemAttributes_attributes_SystemAttributes_SystemEndpointIsNull = false;
}
// determine if requestAttributes_attributes_SystemAttributes_attributes_SystemAttributes_SystemEndpoint should be set to null
if (requestAttributes_attributes_SystemAttributes_attributes_SystemAttributes_SystemEndpointIsNull)
{
requestAttributes_attributes_SystemAttributes_attributes_SystemAttributes_SystemEndpoint = null;
}
if (requestAttributes_attributes_SystemAttributes_attributes_SystemAttributes_SystemEndpoint != null)
{
requestAttributes_attributes_SystemAttributes.SystemEndpoint = requestAttributes_attributes_SystemAttributes_attributes_SystemAttributes_SystemEndpoint;
requestAttributes_attributes_SystemAttributesIsNull = false;
}
// determine if requestAttributes_attributes_SystemAttributes should be set to null
if (requestAttributes_attributes_SystemAttributesIsNull)
{
requestAttributes_attributes_SystemAttributes = null;
}
if (requestAttributes_attributes_SystemAttributes != null)
{
request.Attributes.SystemAttributes = requestAttributes_attributes_SystemAttributes;
requestAttributesIsNull = false;
}
Amazon.QConnect.Model.CustomerProfileAttributes requestAttributes_attributes_CustomerProfileAttributes = null;
// populate CustomerProfileAttributes
var requestAttributes_attributes_CustomerProfileAttributesIsNull = true;
requestAttributes_attributes_CustomerProfileAttributes = new Amazon.QConnect.Model.CustomerProfileAttributes();
System.String requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_AccountNumber = null;
if (cmdletContext.CustomerProfileAttributes_AccountNumber != null)
{
requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_AccountNumber = cmdletContext.CustomerProfileAttributes_AccountNumber;
}
if (requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_AccountNumber != null)
{
requestAttributes_attributes_CustomerProfileAttributes.AccountNumber = requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_AccountNumber;
requestAttributes_attributes_CustomerProfileAttributesIsNull = false;
}
System.String requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_AdditionalInformation = null;
if (cmdletContext.CustomerProfileAttributes_AdditionalInformation != null)
{
requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_AdditionalInformation = cmdletContext.CustomerProfileAttributes_AdditionalInformation;
}
if (requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_AdditionalInformation != null)
{
requestAttributes_attributes_CustomerProfileAttributes.AdditionalInformation = requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_AdditionalInformation;
requestAttributes_attributes_CustomerProfileAttributesIsNull = false;
}
System.String requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_Address1 = null;
if (cmdletContext.CustomerProfileAttributes_Address1 != null)
{
requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_Address1 = cmdletContext.CustomerProfileAttributes_Address1;
}
if (requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_Address1 != null)
{
requestAttributes_attributes_CustomerProfileAttributes.Address1 = requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_Address1;
requestAttributes_attributes_CustomerProfileAttributesIsNull = false;
}
System.String requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_Address2 = null;
if (cmdletContext.CustomerProfileAttributes_Address2 != null)
{
requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_Address2 = cmdletContext.CustomerProfileAttributes_Address2;
}
if (requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_Address2 != null)
{
requestAttributes_attributes_CustomerProfileAttributes.Address2 = requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_Address2;
requestAttributes_attributes_CustomerProfileAttributesIsNull = false;
}
System.String requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_Address3 = null;
if (cmdletContext.CustomerProfileAttributes_Address3 != null)
{
requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_Address3 = cmdletContext.CustomerProfileAttributes_Address3;
}
if (requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_Address3 != null)
{
requestAttributes_attributes_CustomerProfileAttributes.Address3 = requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_Address3;
requestAttributes_attributes_CustomerProfileAttributesIsNull = false;
}
System.String requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_Address4 = null;
if (cmdletContext.CustomerProfileAttributes_Address4 != null)
{
requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_Address4 = cmdletContext.CustomerProfileAttributes_Address4;
}
if (requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_Address4 != null)
{
requestAttributes_attributes_CustomerProfileAttributes.Address4 = requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_Address4;
requestAttributes_attributes_CustomerProfileAttributesIsNull = false;
}
System.String requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_BillingAddress1 = null;
if (cmdletContext.CustomerProfileAttributes_BillingAddress1 != null)
{
requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_BillingAddress1 = cmdletContext.CustomerProfileAttributes_BillingAddress1;
}
if (requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_BillingAddress1 != null)
{
requestAttributes_attributes_CustomerProfileAttributes.BillingAddress1 = requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_BillingAddress1;
requestAttributes_attributes_CustomerProfileAttributesIsNull = false;
}
System.String requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_BillingAddress2 = null;
if (cmdletContext.CustomerProfileAttributes_BillingAddress2 != null)
{
requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_BillingAddress2 = cmdletContext.CustomerProfileAttributes_BillingAddress2;
}
if (requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_BillingAddress2 != null)
{
requestAttributes_attributes_CustomerProfileAttributes.BillingAddress2 = requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_BillingAddress2;
requestAttributes_attributes_CustomerProfileAttributesIsNull = false;
}
System.String requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_BillingAddress3 = null;
if (cmdletContext.CustomerProfileAttributes_BillingAddress3 != null)
{
requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_BillingAddress3 = cmdletContext.CustomerProfileAttributes_BillingAddress3;
}
if (requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_BillingAddress3 != null)
{
requestAttributes_attributes_CustomerProfileAttributes.BillingAddress3 = requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_BillingAddress3;
requestAttributes_attributes_CustomerProfileAttributesIsNull = false;
}
System.String requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_BillingAddress4 = null;
if (cmdletContext.CustomerProfileAttributes_BillingAddress4 != null)
{
requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_BillingAddress4 = cmdletContext.CustomerProfileAttributes_BillingAddress4;
}
if (requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_BillingAddress4 != null)
{
requestAttributes_attributes_CustomerProfileAttributes.BillingAddress4 = requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_BillingAddress4;
requestAttributes_attributes_CustomerProfileAttributesIsNull = false;
}
System.String requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_BillingCity = null;
if (cmdletContext.CustomerProfileAttributes_BillingCity != null)
{
requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_BillingCity = cmdletContext.CustomerProfileAttributes_BillingCity;
}
if (requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_BillingCity != null)
{
requestAttributes_attributes_CustomerProfileAttributes.BillingCity = requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_BillingCity;
requestAttributes_attributes_CustomerProfileAttributesIsNull = false;
}
System.String requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_BillingCountry = null;
if (cmdletContext.CustomerProfileAttributes_BillingCountry != null)
{
requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_BillingCountry = cmdletContext.CustomerProfileAttributes_BillingCountry;
}
if (requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_BillingCountry != null)
{
requestAttributes_attributes_CustomerProfileAttributes.BillingCountry = requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_BillingCountry;
requestAttributes_attributes_CustomerProfileAttributesIsNull = false;
}
System.String requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_BillingCounty = null;
if (cmdletContext.CustomerProfileAttributes_BillingCounty != null)
{
requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_BillingCounty = cmdletContext.CustomerProfileAttributes_BillingCounty;
}
if (requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_BillingCounty != null)
{
requestAttributes_attributes_CustomerProfileAttributes.BillingCounty = requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_BillingCounty;
requestAttributes_attributes_CustomerProfileAttributesIsNull = false;
}
System.String requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_BillingPostalCode = null;
if (cmdletContext.CustomerProfileAttributes_BillingPostalCode != null)
{
requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_BillingPostalCode = cmdletContext.CustomerProfileAttributes_BillingPostalCode;
}
if (requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_BillingPostalCode != null)
{
requestAttributes_attributes_CustomerProfileAttributes.BillingPostalCode = requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_BillingPostalCode;
requestAttributes_attributes_CustomerProfileAttributesIsNull = false;
}
System.String requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_BillingProvince = null;
if (cmdletContext.CustomerProfileAttributes_BillingProvince != null)
{
requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_BillingProvince = cmdletContext.CustomerProfileAttributes_BillingProvince;
}
if (requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_BillingProvince != null)
{
requestAttributes_attributes_CustomerProfileAttributes.BillingProvince = requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_BillingProvince;
requestAttributes_attributes_CustomerProfileAttributesIsNull = false;
}
System.String requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_BillingState = null;
if (cmdletContext.CustomerProfileAttributes_BillingState != null)
{
requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_BillingState = cmdletContext.CustomerProfileAttributes_BillingState;
}
if (requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_BillingState != null)
{
requestAttributes_attributes_CustomerProfileAttributes.BillingState = requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_BillingState;
requestAttributes_attributes_CustomerProfileAttributesIsNull = false;
}
System.String requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_BirthDate = null;
if (cmdletContext.CustomerProfileAttributes_BirthDate != null)
{
requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_BirthDate = cmdletContext.CustomerProfileAttributes_BirthDate;
}
if (requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_BirthDate != null)
{
requestAttributes_attributes_CustomerProfileAttributes.BirthDate = requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_BirthDate;
requestAttributes_attributes_CustomerProfileAttributesIsNull = false;
}
System.String requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_BusinessEmailAddress = null;
if (cmdletContext.CustomerProfileAttributes_BusinessEmailAddress != null)
{
requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_BusinessEmailAddress = cmdletContext.CustomerProfileAttributes_BusinessEmailAddress;
}
if (requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_BusinessEmailAddress != null)
{
requestAttributes_attributes_CustomerProfileAttributes.BusinessEmailAddress = requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_BusinessEmailAddress;
requestAttributes_attributes_CustomerProfileAttributesIsNull = false;
}
System.String requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_BusinessName = null;
if (cmdletContext.CustomerProfileAttributes_BusinessName != null)
{
requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_BusinessName = cmdletContext.CustomerProfileAttributes_BusinessName;
}
if (requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_BusinessName != null)
{
requestAttributes_attributes_CustomerProfileAttributes.BusinessName = requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_BusinessName;
requestAttributes_attributes_CustomerProfileAttributesIsNull = false;
}
System.String requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_BusinessPhoneNumber = null;
if (cmdletContext.CustomerProfileAttributes_BusinessPhoneNumber != null)
{
requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_BusinessPhoneNumber = cmdletContext.CustomerProfileAttributes_BusinessPhoneNumber;
}
if (requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_BusinessPhoneNumber != null)
{
requestAttributes_attributes_CustomerProfileAttributes.BusinessPhoneNumber = requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_BusinessPhoneNumber;
requestAttributes_attributes_CustomerProfileAttributesIsNull = false;
}
System.String requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_City = null;
if (cmdletContext.CustomerProfileAttributes_City != null)
{
requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_City = cmdletContext.CustomerProfileAttributes_City;
}
if (requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_City != null)
{
requestAttributes_attributes_CustomerProfileAttributes.City = requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_City;
requestAttributes_attributes_CustomerProfileAttributesIsNull = false;
}
System.String requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_Country = null;
if (cmdletContext.CustomerProfileAttributes_Country != null)
{
requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_Country = cmdletContext.CustomerProfileAttributes_Country;
}
if (requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_Country != null)
{
requestAttributes_attributes_CustomerProfileAttributes.Country = requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_Country;
requestAttributes_attributes_CustomerProfileAttributesIsNull = false;
}
System.String requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_County = null;
if (cmdletContext.CustomerProfileAttributes_County != null)
{
requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_County = cmdletContext.CustomerProfileAttributes_County;
}
if (requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_County != null)
{
requestAttributes_attributes_CustomerProfileAttributes.County = requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_County;
requestAttributes_attributes_CustomerProfileAttributesIsNull = false;
}
Dictionary<System.String, System.String> requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_Custom = null;
if (cmdletContext.CustomerProfileAttributes_Custom != null)
{
requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_Custom = cmdletContext.CustomerProfileAttributes_Custom;
}
if (requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_Custom != null)
{
requestAttributes_attributes_CustomerProfileAttributes.Custom = requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_Custom;
requestAttributes_attributes_CustomerProfileAttributesIsNull = false;
}
System.String requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_EmailAddress = null;
if (cmdletContext.CustomerProfileAttributes_EmailAddress != null)
{
requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_EmailAddress = cmdletContext.CustomerProfileAttributes_EmailAddress;
}
if (requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_EmailAddress != null)
{
requestAttributes_attributes_CustomerProfileAttributes.EmailAddress = requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_EmailAddress;
requestAttributes_attributes_CustomerProfileAttributesIsNull = false;
}
System.String requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_FirstName = null;
if (cmdletContext.CustomerProfileAttributes_FirstName != null)
{
requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_FirstName = cmdletContext.CustomerProfileAttributes_FirstName;
}
if (requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_FirstName != null)
{
requestAttributes_attributes_CustomerProfileAttributes.FirstName = requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_FirstName;
requestAttributes_attributes_CustomerProfileAttributesIsNull = false;
}
System.String requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_Gender = null;
if (cmdletContext.CustomerProfileAttributes_Gender != null)
{
requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_Gender = cmdletContext.CustomerProfileAttributes_Gender;
}
if (requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_Gender != null)
{
requestAttributes_attributes_CustomerProfileAttributes.Gender = requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_Gender;
requestAttributes_attributes_CustomerProfileAttributesIsNull = false;
}
System.String requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_HomePhoneNumber = null;
if (cmdletContext.CustomerProfileAttributes_HomePhoneNumber != null)
{
requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_HomePhoneNumber = cmdletContext.CustomerProfileAttributes_HomePhoneNumber;
}
if (requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_HomePhoneNumber != null)
{
requestAttributes_attributes_CustomerProfileAttributes.HomePhoneNumber = requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_HomePhoneNumber;
requestAttributes_attributes_CustomerProfileAttributesIsNull = false;
}
System.String requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_LastName = null;
if (cmdletContext.CustomerProfileAttributes_LastName != null)
{
requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_LastName = cmdletContext.CustomerProfileAttributes_LastName;
}
if (requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_LastName != null)
{
requestAttributes_attributes_CustomerProfileAttributes.LastName = requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_LastName;
requestAttributes_attributes_CustomerProfileAttributesIsNull = false;
}
System.String requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_MailingAddress1 = null;
if (cmdletContext.CustomerProfileAttributes_MailingAddress1 != null)
{
requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_MailingAddress1 = cmdletContext.CustomerProfileAttributes_MailingAddress1;
}
if (requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_MailingAddress1 != null)
{
requestAttributes_attributes_CustomerProfileAttributes.MailingAddress1 = requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_MailingAddress1;
requestAttributes_attributes_CustomerProfileAttributesIsNull = false;
}
System.String requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_MailingAddress2 = null;
if (cmdletContext.CustomerProfileAttributes_MailingAddress2 != null)
{
requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_MailingAddress2 = cmdletContext.CustomerProfileAttributes_MailingAddress2;
}
if (requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_MailingAddress2 != null)
{
requestAttributes_attributes_CustomerProfileAttributes.MailingAddress2 = requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_MailingAddress2;
requestAttributes_attributes_CustomerProfileAttributesIsNull = false;
}
System.String requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_MailingAddress3 = null;
if (cmdletContext.CustomerProfileAttributes_MailingAddress3 != null)
{
requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_MailingAddress3 = cmdletContext.CustomerProfileAttributes_MailingAddress3;
}
if (requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_MailingAddress3 != null)
{
requestAttributes_attributes_CustomerProfileAttributes.MailingAddress3 = requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_MailingAddress3;
requestAttributes_attributes_CustomerProfileAttributesIsNull = false;
}
System.String requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_MailingAddress4 = null;
if (cmdletContext.CustomerProfileAttributes_MailingAddress4 != null)
{
requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_MailingAddress4 = cmdletContext.CustomerProfileAttributes_MailingAddress4;
}
if (requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_MailingAddress4 != null)
{
requestAttributes_attributes_CustomerProfileAttributes.MailingAddress4 = requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_MailingAddress4;
requestAttributes_attributes_CustomerProfileAttributesIsNull = false;
}
System.String requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_MailingCity = null;
if (cmdletContext.CustomerProfileAttributes_MailingCity != null)
{
requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_MailingCity = cmdletContext.CustomerProfileAttributes_MailingCity;
}
if (requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_MailingCity != null)
{
requestAttributes_attributes_CustomerProfileAttributes.MailingCity = requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_MailingCity;
requestAttributes_attributes_CustomerProfileAttributesIsNull = false;
}
System.String requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_MailingCountry = null;
if (cmdletContext.CustomerProfileAttributes_MailingCountry != null)
{
requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_MailingCountry = cmdletContext.CustomerProfileAttributes_MailingCountry;
}
if (requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_MailingCountry != null)
{
requestAttributes_attributes_CustomerProfileAttributes.MailingCountry = requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_MailingCountry;
requestAttributes_attributes_CustomerProfileAttributesIsNull = false;
}
System.String requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_MailingCounty = null;
if (cmdletContext.CustomerProfileAttributes_MailingCounty != null)
{
requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_MailingCounty = cmdletContext.CustomerProfileAttributes_MailingCounty;
}
if (requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_MailingCounty != null)
{
requestAttributes_attributes_CustomerProfileAttributes.MailingCounty = requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_MailingCounty;
requestAttributes_attributes_CustomerProfileAttributesIsNull = false;
}
System.String requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_MailingPostalCode = null;
if (cmdletContext.CustomerProfileAttributes_MailingPostalCode != null)
{
requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_MailingPostalCode = cmdletContext.CustomerProfileAttributes_MailingPostalCode;
}
if (requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_MailingPostalCode != null)
{
requestAttributes_attributes_CustomerProfileAttributes.MailingPostalCode = requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_MailingPostalCode;
requestAttributes_attributes_CustomerProfileAttributesIsNull = false;
}
System.String requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_MailingProvince = null;
if (cmdletContext.CustomerProfileAttributes_MailingProvince != null)
{
requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_MailingProvince = cmdletContext.CustomerProfileAttributes_MailingProvince;
}
if (requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_MailingProvince != null)
{
requestAttributes_attributes_CustomerProfileAttributes.MailingProvince = requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_MailingProvince;
requestAttributes_attributes_CustomerProfileAttributesIsNull = false;
}
System.String requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_MailingState = null;
if (cmdletContext.CustomerProfileAttributes_MailingState != null)
{
requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_MailingState = cmdletContext.CustomerProfileAttributes_MailingState;
}
if (requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_MailingState != null)
{
requestAttributes_attributes_CustomerProfileAttributes.MailingState = requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_MailingState;
requestAttributes_attributes_CustomerProfileAttributesIsNull = false;
}
System.String requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_MiddleName = null;
if (cmdletContext.CustomerProfileAttributes_MiddleName != null)
{
requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_MiddleName = cmdletContext.CustomerProfileAttributes_MiddleName;
}
if (requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_MiddleName != null)
{
requestAttributes_attributes_CustomerProfileAttributes.MiddleName = requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_MiddleName;
requestAttributes_attributes_CustomerProfileAttributesIsNull = false;
}
System.String requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_MobilePhoneNumber = null;
if (cmdletContext.CustomerProfileAttributes_MobilePhoneNumber != null)
{
requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_MobilePhoneNumber = cmdletContext.CustomerProfileAttributes_MobilePhoneNumber;
}
if (requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_MobilePhoneNumber != null)
{
requestAttributes_attributes_CustomerProfileAttributes.MobilePhoneNumber = requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_MobilePhoneNumber;
requestAttributes_attributes_CustomerProfileAttributesIsNull = false;
}
System.String requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_PartyType = null;
if (cmdletContext.CustomerProfileAttributes_PartyType != null)
{
requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_PartyType = cmdletContext.CustomerProfileAttributes_PartyType;
}
if (requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_PartyType != null)
{
requestAttributes_attributes_CustomerProfileAttributes.PartyType = requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_PartyType;
requestAttributes_attributes_CustomerProfileAttributesIsNull = false;
}
System.String requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_PhoneNumber = null;
if (cmdletContext.CustomerProfileAttributes_PhoneNumber != null)
{
requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_PhoneNumber = cmdletContext.CustomerProfileAttributes_PhoneNumber;
}
if (requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_PhoneNumber != null)
{
requestAttributes_attributes_CustomerProfileAttributes.PhoneNumber = requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_PhoneNumber;
requestAttributes_attributes_CustomerProfileAttributesIsNull = false;
}
System.String requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_PostalCode = null;
if (cmdletContext.CustomerProfileAttributes_PostalCode != null)
{
requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_PostalCode = cmdletContext.CustomerProfileAttributes_PostalCode;
}
if (requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_PostalCode != null)
{
requestAttributes_attributes_CustomerProfileAttributes.PostalCode = requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_PostalCode;
requestAttributes_attributes_CustomerProfileAttributesIsNull = false;
}
System.String requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_ProfileARN = null;
if (cmdletContext.CustomerProfileAttributes_ProfileARN != null)
{
requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_ProfileARN = cmdletContext.CustomerProfileAttributes_ProfileARN;
}
if (requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_ProfileARN != null)
{
requestAttributes_attributes_CustomerProfileAttributes.ProfileARN = requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_ProfileARN;
requestAttributes_attributes_CustomerProfileAttributesIsNull = false;
}
System.String requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_ProfileId = null;
if (cmdletContext.CustomerProfileAttributes_ProfileId != null)
{
requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_ProfileId = cmdletContext.CustomerProfileAttributes_ProfileId;
}
if (requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_ProfileId != null)
{
requestAttributes_attributes_CustomerProfileAttributes.ProfileId = requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_ProfileId;
requestAttributes_attributes_CustomerProfileAttributesIsNull = false;
}
System.String requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_Province = null;
if (cmdletContext.CustomerProfileAttributes_Province != null)
{
requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_Province = cmdletContext.CustomerProfileAttributes_Province;
}
if (requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_Province != null)
{
requestAttributes_attributes_CustomerProfileAttributes.Province = requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_Province;
requestAttributes_attributes_CustomerProfileAttributesIsNull = false;
}
System.String requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_ShippingAddress1 = null;
if (cmdletContext.CustomerProfileAttributes_ShippingAddress1 != null)
{
requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_ShippingAddress1 = cmdletContext.CustomerProfileAttributes_ShippingAddress1;
}
if (requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_ShippingAddress1 != null)
{
requestAttributes_attributes_CustomerProfileAttributes.ShippingAddress1 = requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_ShippingAddress1;
requestAttributes_attributes_CustomerProfileAttributesIsNull = false;
}
System.String requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_ShippingAddress2 = null;
if (cmdletContext.CustomerProfileAttributes_ShippingAddress2 != null)
{
requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_ShippingAddress2 = cmdletContext.CustomerProfileAttributes_ShippingAddress2;
}
if (requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_ShippingAddress2 != null)
{
requestAttributes_attributes_CustomerProfileAttributes.ShippingAddress2 = requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_ShippingAddress2;
requestAttributes_attributes_CustomerProfileAttributesIsNull = false;
}
System.String requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_ShippingAddress3 = null;
if (cmdletContext.CustomerProfileAttributes_ShippingAddress3 != null)
{
requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_ShippingAddress3 = cmdletContext.CustomerProfileAttributes_ShippingAddress3;
}
if (requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_ShippingAddress3 != null)
{
requestAttributes_attributes_CustomerProfileAttributes.ShippingAddress3 = requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_ShippingAddress3;
requestAttributes_attributes_CustomerProfileAttributesIsNull = false;
}
System.String requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_ShippingAddress4 = null;
if (cmdletContext.CustomerProfileAttributes_ShippingAddress4 != null)
{
requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_ShippingAddress4 = cmdletContext.CustomerProfileAttributes_ShippingAddress4;
}
if (requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_ShippingAddress4 != null)
{
requestAttributes_attributes_CustomerProfileAttributes.ShippingAddress4 = requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_ShippingAddress4;
requestAttributes_attributes_CustomerProfileAttributesIsNull = false;
}
System.String requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_ShippingCity = null;
if (cmdletContext.CustomerProfileAttributes_ShippingCity != null)
{
requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_ShippingCity = cmdletContext.CustomerProfileAttributes_ShippingCity;
}
if (requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_ShippingCity != null)
{
requestAttributes_attributes_CustomerProfileAttributes.ShippingCity = requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_ShippingCity;
requestAttributes_attributes_CustomerProfileAttributesIsNull = false;
}
System.String requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_ShippingCountry = null;
if (cmdletContext.CustomerProfileAttributes_ShippingCountry != null)
{
requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_ShippingCountry = cmdletContext.CustomerProfileAttributes_ShippingCountry;
}
if (requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_ShippingCountry != null)
{
requestAttributes_attributes_CustomerProfileAttributes.ShippingCountry = requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_ShippingCountry;
requestAttributes_attributes_CustomerProfileAttributesIsNull = false;
}
System.String requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_ShippingCounty = null;
if (cmdletContext.CustomerProfileAttributes_ShippingCounty != null)
{
requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_ShippingCounty = cmdletContext.CustomerProfileAttributes_ShippingCounty;
}
if (requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_ShippingCounty != null)
{
requestAttributes_attributes_CustomerProfileAttributes.ShippingCounty = requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_ShippingCounty;
requestAttributes_attributes_CustomerProfileAttributesIsNull = false;
}
System.String requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_ShippingPostalCode = null;
if (cmdletContext.CustomerProfileAttributes_ShippingPostalCode != null)
{
requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_ShippingPostalCode = cmdletContext.CustomerProfileAttributes_ShippingPostalCode;
}
if (requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_ShippingPostalCode != null)
{
requestAttributes_attributes_CustomerProfileAttributes.ShippingPostalCode = requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_ShippingPostalCode;
requestAttributes_attributes_CustomerProfileAttributesIsNull = false;
}
System.String requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_ShippingProvince = null;
if (cmdletContext.CustomerProfileAttributes_ShippingProvince != null)
{
requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_ShippingProvince = cmdletContext.CustomerProfileAttributes_ShippingProvince;
}
if (requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_ShippingProvince != null)
{
requestAttributes_attributes_CustomerProfileAttributes.ShippingProvince = requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_ShippingProvince;
requestAttributes_attributes_CustomerProfileAttributesIsNull = false;
}
System.String requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_ShippingState = null;
if (cmdletContext.CustomerProfileAttributes_ShippingState != null)
{
requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_ShippingState = cmdletContext.CustomerProfileAttributes_ShippingState;
}
if (requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_ShippingState != null)
{
requestAttributes_attributes_CustomerProfileAttributes.ShippingState = requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_ShippingState;
requestAttributes_attributes_CustomerProfileAttributesIsNull = false;
}
System.String requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_State = null;
if (cmdletContext.CustomerProfileAttributes_State != null)
{
requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_State = cmdletContext.CustomerProfileAttributes_State;
}
if (requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_State != null)
{
requestAttributes_attributes_CustomerProfileAttributes.State = requestAttributes_attributes_CustomerProfileAttributes_customerProfileAttributes_State;
requestAttributes_attributes_CustomerProfileAttributesIsNull = false;
}
// determine if requestAttributes_attributes_CustomerProfileAttributes should be set to null
if (requestAttributes_attributes_CustomerProfileAttributesIsNull)
{
requestAttributes_attributes_CustomerProfileAttributes = null;
}
if (requestAttributes_attributes_CustomerProfileAttributes != null)
{
request.Attributes.CustomerProfileAttributes = requestAttributes_attributes_CustomerProfileAttributes;
requestAttributesIsNull = false;
}
// determine if request.Attributes should be set to null
if (requestAttributesIsNull)
{
request.Attributes = null;
}
if (cmdletContext.KnowledgeBaseId != null)
{
request.KnowledgeBaseId = cmdletContext.KnowledgeBaseId;
}
if (cmdletContext.MessageTemplateId != null)
{
request.MessageTemplateId = cmdletContext.MessageTemplateId;
}
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;
}