/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace Http { class URI; } //namespace Http namespace CustomerProfiles { namespace Model { /** */ class SearchProfilesRequest : public CustomerProfilesRequest { public: AWS_CUSTOMERPROFILES_API SearchProfilesRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "SearchProfiles"; } AWS_CUSTOMERPROFILES_API Aws::String SerializePayload() const override; AWS_CUSTOMERPROFILES_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; /** *

The pagination token from the previous SearchProfiles API call.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

The pagination token from the previous SearchProfiles API call.

*/ inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } /** *

The pagination token from the previous SearchProfiles API call.

*/ inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } /** *

The pagination token from the previous SearchProfiles API call.

*/ inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } /** *

The pagination token from the previous SearchProfiles API call.

*/ inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } /** *

The pagination token from the previous SearchProfiles API call.

*/ inline SearchProfilesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

The pagination token from the previous SearchProfiles API call.

*/ inline SearchProfilesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

The pagination token from the previous SearchProfiles API call.

*/ inline SearchProfilesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} /** *

The maximum number of objects returned per page.

The default is 20 if * this parameter is not included in the request.

*/ inline int GetMaxResults() const{ return m_maxResults; } /** *

The maximum number of objects returned per page.

The default is 20 if * this parameter is not included in the request.

*/ inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } /** *

The maximum number of objects returned per page.

The default is 20 if * this parameter is not included in the request.

*/ inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } /** *

The maximum number of objects returned per page.

The default is 20 if * this parameter is not included in the request.

*/ inline SearchProfilesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} /** *

The unique name of the domain.

*/ inline const Aws::String& GetDomainName() const{ return m_domainName; } /** *

The unique name of the domain.

*/ inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; } /** *

The unique name of the domain.

*/ inline void SetDomainName(const Aws::String& value) { m_domainNameHasBeenSet = true; m_domainName = value; } /** *

The unique name of the domain.

*/ inline void SetDomainName(Aws::String&& value) { m_domainNameHasBeenSet = true; m_domainName = std::move(value); } /** *

The unique name of the domain.

*/ inline void SetDomainName(const char* value) { m_domainNameHasBeenSet = true; m_domainName.assign(value); } /** *

The unique name of the domain.

*/ inline SearchProfilesRequest& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;} /** *

The unique name of the domain.

*/ inline SearchProfilesRequest& WithDomainName(Aws::String&& value) { SetDomainName(std::move(value)); return *this;} /** *

The unique name of the domain.

*/ inline SearchProfilesRequest& WithDomainName(const char* value) { SetDomainName(value); return *this;} /** *

A searchable identifier of a customer profile. The predefined keys you can * use to search include: _account, _profileId, _assetId, _caseId, _orderId, * _fullName, _phone, _email, _ctrContactId, _marketoLeadId, _salesforceAccountId, * _salesforceContactId, _salesforceAssetId, _zendeskUserId, _zendeskExternalId, * _zendeskTicketId, _serviceNowSystemId, _serviceNowIncidentId, _segmentUserId, * _shopifyCustomerId, _shopifyOrderId.

*/ inline const Aws::String& GetKeyName() const{ return m_keyName; } /** *

A searchable identifier of a customer profile. The predefined keys you can * use to search include: _account, _profileId, _assetId, _caseId, _orderId, * _fullName, _phone, _email, _ctrContactId, _marketoLeadId, _salesforceAccountId, * _salesforceContactId, _salesforceAssetId, _zendeskUserId, _zendeskExternalId, * _zendeskTicketId, _serviceNowSystemId, _serviceNowIncidentId, _segmentUserId, * _shopifyCustomerId, _shopifyOrderId.

*/ inline bool KeyNameHasBeenSet() const { return m_keyNameHasBeenSet; } /** *

A searchable identifier of a customer profile. The predefined keys you can * use to search include: _account, _profileId, _assetId, _caseId, _orderId, * _fullName, _phone, _email, _ctrContactId, _marketoLeadId, _salesforceAccountId, * _salesforceContactId, _salesforceAssetId, _zendeskUserId, _zendeskExternalId, * _zendeskTicketId, _serviceNowSystemId, _serviceNowIncidentId, _segmentUserId, * _shopifyCustomerId, _shopifyOrderId.

*/ inline void SetKeyName(const Aws::String& value) { m_keyNameHasBeenSet = true; m_keyName = value; } /** *

A searchable identifier of a customer profile. The predefined keys you can * use to search include: _account, _profileId, _assetId, _caseId, _orderId, * _fullName, _phone, _email, _ctrContactId, _marketoLeadId, _salesforceAccountId, * _salesforceContactId, _salesforceAssetId, _zendeskUserId, _zendeskExternalId, * _zendeskTicketId, _serviceNowSystemId, _serviceNowIncidentId, _segmentUserId, * _shopifyCustomerId, _shopifyOrderId.

*/ inline void SetKeyName(Aws::String&& value) { m_keyNameHasBeenSet = true; m_keyName = std::move(value); } /** *

A searchable identifier of a customer profile. The predefined keys you can * use to search include: _account, _profileId, _assetId, _caseId, _orderId, * _fullName, _phone, _email, _ctrContactId, _marketoLeadId, _salesforceAccountId, * _salesforceContactId, _salesforceAssetId, _zendeskUserId, _zendeskExternalId, * _zendeskTicketId, _serviceNowSystemId, _serviceNowIncidentId, _segmentUserId, * _shopifyCustomerId, _shopifyOrderId.

*/ inline void SetKeyName(const char* value) { m_keyNameHasBeenSet = true; m_keyName.assign(value); } /** *

A searchable identifier of a customer profile. The predefined keys you can * use to search include: _account, _profileId, _assetId, _caseId, _orderId, * _fullName, _phone, _email, _ctrContactId, _marketoLeadId, _salesforceAccountId, * _salesforceContactId, _salesforceAssetId, _zendeskUserId, _zendeskExternalId, * _zendeskTicketId, _serviceNowSystemId, _serviceNowIncidentId, _segmentUserId, * _shopifyCustomerId, _shopifyOrderId.

*/ inline SearchProfilesRequest& WithKeyName(const Aws::String& value) { SetKeyName(value); return *this;} /** *

A searchable identifier of a customer profile. The predefined keys you can * use to search include: _account, _profileId, _assetId, _caseId, _orderId, * _fullName, _phone, _email, _ctrContactId, _marketoLeadId, _salesforceAccountId, * _salesforceContactId, _salesforceAssetId, _zendeskUserId, _zendeskExternalId, * _zendeskTicketId, _serviceNowSystemId, _serviceNowIncidentId, _segmentUserId, * _shopifyCustomerId, _shopifyOrderId.

*/ inline SearchProfilesRequest& WithKeyName(Aws::String&& value) { SetKeyName(std::move(value)); return *this;} /** *

A searchable identifier of a customer profile. The predefined keys you can * use to search include: _account, _profileId, _assetId, _caseId, _orderId, * _fullName, _phone, _email, _ctrContactId, _marketoLeadId, _salesforceAccountId, * _salesforceContactId, _salesforceAssetId, _zendeskUserId, _zendeskExternalId, * _zendeskTicketId, _serviceNowSystemId, _serviceNowIncidentId, _segmentUserId, * _shopifyCustomerId, _shopifyOrderId.

*/ inline SearchProfilesRequest& WithKeyName(const char* value) { SetKeyName(value); return *this;} /** *

A list of key values.

*/ inline const Aws::Vector& GetValues() const{ return m_values; } /** *

A list of key values.

*/ inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; } /** *

A list of key values.

*/ inline void SetValues(const Aws::Vector& value) { m_valuesHasBeenSet = true; m_values = value; } /** *

A list of key values.

*/ inline void SetValues(Aws::Vector&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); } /** *

A list of key values.

*/ inline SearchProfilesRequest& WithValues(const Aws::Vector& value) { SetValues(value); return *this;} /** *

A list of key values.

*/ inline SearchProfilesRequest& WithValues(Aws::Vector&& value) { SetValues(std::move(value)); return *this;} /** *

A list of key values.

*/ inline SearchProfilesRequest& AddValues(const Aws::String& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; } /** *

A list of key values.

*/ inline SearchProfilesRequest& AddValues(Aws::String&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; } /** *

A list of key values.

*/ inline SearchProfilesRequest& AddValues(const char* value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; } /** *

A list of AdditionalSearchKey objects that are each searchable * identifiers of a profile. Each AdditionalSearchKey object contains * a KeyName and a list of Values associated with that * specific key (i.e., a key-value(s) pair). These additional search keys will be * used in conjunction with the LogicalOperator and the required * KeyName and Values parameters to search for profiles * that satisfy the search criteria.

*/ inline const Aws::Vector& GetAdditionalSearchKeys() const{ return m_additionalSearchKeys; } /** *

A list of AdditionalSearchKey objects that are each searchable * identifiers of a profile. Each AdditionalSearchKey object contains * a KeyName and a list of Values associated with that * specific key (i.e., a key-value(s) pair). These additional search keys will be * used in conjunction with the LogicalOperator and the required * KeyName and Values parameters to search for profiles * that satisfy the search criteria.

*/ inline bool AdditionalSearchKeysHasBeenSet() const { return m_additionalSearchKeysHasBeenSet; } /** *

A list of AdditionalSearchKey objects that are each searchable * identifiers of a profile. Each AdditionalSearchKey object contains * a KeyName and a list of Values associated with that * specific key (i.e., a key-value(s) pair). These additional search keys will be * used in conjunction with the LogicalOperator and the required * KeyName and Values parameters to search for profiles * that satisfy the search criteria.

*/ inline void SetAdditionalSearchKeys(const Aws::Vector& value) { m_additionalSearchKeysHasBeenSet = true; m_additionalSearchKeys = value; } /** *

A list of AdditionalSearchKey objects that are each searchable * identifiers of a profile. Each AdditionalSearchKey object contains * a KeyName and a list of Values associated with that * specific key (i.e., a key-value(s) pair). These additional search keys will be * used in conjunction with the LogicalOperator and the required * KeyName and Values parameters to search for profiles * that satisfy the search criteria.

*/ inline void SetAdditionalSearchKeys(Aws::Vector&& value) { m_additionalSearchKeysHasBeenSet = true; m_additionalSearchKeys = std::move(value); } /** *

A list of AdditionalSearchKey objects that are each searchable * identifiers of a profile. Each AdditionalSearchKey object contains * a KeyName and a list of Values associated with that * specific key (i.e., a key-value(s) pair). These additional search keys will be * used in conjunction with the LogicalOperator and the required * KeyName and Values parameters to search for profiles * that satisfy the search criteria.

*/ inline SearchProfilesRequest& WithAdditionalSearchKeys(const Aws::Vector& value) { SetAdditionalSearchKeys(value); return *this;} /** *

A list of AdditionalSearchKey objects that are each searchable * identifiers of a profile. Each AdditionalSearchKey object contains * a KeyName and a list of Values associated with that * specific key (i.e., a key-value(s) pair). These additional search keys will be * used in conjunction with the LogicalOperator and the required * KeyName and Values parameters to search for profiles * that satisfy the search criteria.

*/ inline SearchProfilesRequest& WithAdditionalSearchKeys(Aws::Vector&& value) { SetAdditionalSearchKeys(std::move(value)); return *this;} /** *

A list of AdditionalSearchKey objects that are each searchable * identifiers of a profile. Each AdditionalSearchKey object contains * a KeyName and a list of Values associated with that * specific key (i.e., a key-value(s) pair). These additional search keys will be * used in conjunction with the LogicalOperator and the required * KeyName and Values parameters to search for profiles * that satisfy the search criteria.

*/ inline SearchProfilesRequest& AddAdditionalSearchKeys(const AdditionalSearchKey& value) { m_additionalSearchKeysHasBeenSet = true; m_additionalSearchKeys.push_back(value); return *this; } /** *

A list of AdditionalSearchKey objects that are each searchable * identifiers of a profile. Each AdditionalSearchKey object contains * a KeyName and a list of Values associated with that * specific key (i.e., a key-value(s) pair). These additional search keys will be * used in conjunction with the LogicalOperator and the required * KeyName and Values parameters to search for profiles * that satisfy the search criteria.

*/ inline SearchProfilesRequest& AddAdditionalSearchKeys(AdditionalSearchKey&& value) { m_additionalSearchKeysHasBeenSet = true; m_additionalSearchKeys.push_back(std::move(value)); return *this; } /** *

Relationship between all specified search keys that will be used to search * for profiles. This includes the required KeyName and * Values parameters as well as any key-value(s) pairs specified in * the AdditionalSearchKeys list.

This parameter influences * which profiles will be returned in the response in the following manner:

*
  • AND - The response only includes profiles that match * all of the search keys.

  • OR - The response * includes profiles that match at least one of the search keys.

*

The OR relationship is the default behavior if this parameter is * not included in the request.

*/ inline const LogicalOperator& GetLogicalOperator() const{ return m_logicalOperator; } /** *

Relationship between all specified search keys that will be used to search * for profiles. This includes the required KeyName and * Values parameters as well as any key-value(s) pairs specified in * the AdditionalSearchKeys list.

This parameter influences * which profiles will be returned in the response in the following manner:

*
  • AND - The response only includes profiles that match * all of the search keys.

  • OR - The response * includes profiles that match at least one of the search keys.

*

The OR relationship is the default behavior if this parameter is * not included in the request.

*/ inline bool LogicalOperatorHasBeenSet() const { return m_logicalOperatorHasBeenSet; } /** *

Relationship between all specified search keys that will be used to search * for profiles. This includes the required KeyName and * Values parameters as well as any key-value(s) pairs specified in * the AdditionalSearchKeys list.

This parameter influences * which profiles will be returned in the response in the following manner:

*
  • AND - The response only includes profiles that match * all of the search keys.

  • OR - The response * includes profiles that match at least one of the search keys.

*

The OR relationship is the default behavior if this parameter is * not included in the request.

*/ inline void SetLogicalOperator(const LogicalOperator& value) { m_logicalOperatorHasBeenSet = true; m_logicalOperator = value; } /** *

Relationship between all specified search keys that will be used to search * for profiles. This includes the required KeyName and * Values parameters as well as any key-value(s) pairs specified in * the AdditionalSearchKeys list.

This parameter influences * which profiles will be returned in the response in the following manner:

*
  • AND - The response only includes profiles that match * all of the search keys.

  • OR - The response * includes profiles that match at least one of the search keys.

*

The OR relationship is the default behavior if this parameter is * not included in the request.

*/ inline void SetLogicalOperator(LogicalOperator&& value) { m_logicalOperatorHasBeenSet = true; m_logicalOperator = std::move(value); } /** *

Relationship between all specified search keys that will be used to search * for profiles. This includes the required KeyName and * Values parameters as well as any key-value(s) pairs specified in * the AdditionalSearchKeys list.

This parameter influences * which profiles will be returned in the response in the following manner:

*
  • AND - The response only includes profiles that match * all of the search keys.

  • OR - The response * includes profiles that match at least one of the search keys.

*

The OR relationship is the default behavior if this parameter is * not included in the request.

*/ inline SearchProfilesRequest& WithLogicalOperator(const LogicalOperator& value) { SetLogicalOperator(value); return *this;} /** *

Relationship between all specified search keys that will be used to search * for profiles. This includes the required KeyName and * Values parameters as well as any key-value(s) pairs specified in * the AdditionalSearchKeys list.

This parameter influences * which profiles will be returned in the response in the following manner:

*
  • AND - The response only includes profiles that match * all of the search keys.

  • OR - The response * includes profiles that match at least one of the search keys.

*

The OR relationship is the default behavior if this parameter is * not included in the request.

*/ inline SearchProfilesRequest& WithLogicalOperator(LogicalOperator&& value) { SetLogicalOperator(std::move(value)); return *this;} private: Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::String m_domainName; bool m_domainNameHasBeenSet = false; Aws::String m_keyName; bool m_keyNameHasBeenSet = false; Aws::Vector m_values; bool m_valuesHasBeenSet = false; Aws::Vector m_additionalSearchKeys; bool m_additionalSearchKeysHasBeenSet = false; LogicalOperator m_logicalOperator; bool m_logicalOperatorHasBeenSet = false; }; } // namespace Model } // namespace CustomerProfiles } // namespace Aws