/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the customer-profiles-2020-08-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CustomerProfiles.Model
{
///
/// Container for the parameters to the GetSimilarProfiles operation.
/// Returns a set of profiles that belong to the same matching group using the matchId
/// or profileId
. You can also specify the type of matching that you want
/// for finding similar profiles using either RULE_BASED_MATCHING
or ML_BASED_MATCHING
.
///
public partial class GetSimilarProfilesRequest : AmazonCustomerProfilesRequest
{
private string _domainName;
private MatchType _matchType;
private int? _maxResults;
private string _nextToken;
private string _searchKey;
private string _searchValue;
///
/// Gets and sets the property DomainName.
///
/// The unique name of the domain.
///
///
[AWSProperty(Required=true, Min=1, Max=64)]
public string DomainName
{
get { return this._domainName; }
set { this._domainName = value; }
}
// Check to see if DomainName property is set
internal bool IsSetDomainName()
{
return this._domainName != null;
}
///
/// Gets and sets the property MatchType.
///
/// Specify the type of matching to get similar profiles for.
///
///
[AWSProperty(Required=true)]
public MatchType MatchType
{
get { return this._matchType; }
set { this._matchType = value; }
}
// Check to see if MatchType property is set
internal bool IsSetMatchType()
{
return this._matchType != null;
}
///
/// Gets and sets the property MaxResults.
///
/// The maximum number of objects returned per page.
///
///
[AWSProperty(Min=1, Max=100)]
public int MaxResults
{
get { return this._maxResults.GetValueOrDefault(); }
set { this._maxResults = value; }
}
// Check to see if MaxResults property is set
internal bool IsSetMaxResults()
{
return this._maxResults.HasValue;
}
///
/// Gets and sets the property NextToken.
///
/// The pagination token from the previous GetSimilarProfiles
API call.
///
///
[AWSProperty(Min=1, Max=1024)]
public string NextToken
{
get { return this._nextToken; }
set { this._nextToken = value; }
}
// Check to see if NextToken property is set
internal bool IsSetNextToken()
{
return this._nextToken != null;
}
///
/// Gets and sets the property SearchKey.
///
/// The string indicating the search key to be used.
///
///
[AWSProperty(Required=true, Min=1, Max=255)]
public string SearchKey
{
get { return this._searchKey; }
set { this._searchKey = value; }
}
// Check to see if SearchKey property is set
internal bool IsSetSearchKey()
{
return this._searchKey != null;
}
///
/// Gets and sets the property SearchValue.
///
/// The string based on SearchKey
to be searched for similar profiles.
///
///
[AWSProperty(Required=true, Min=1, Max=255)]
public string SearchValue
{
get { return this._searchValue; }
set { this._searchValue = value; }
}
// Check to see if SearchValue property is set
internal bool IsSetSearchValue()
{
return this._searchValue != null;
}
}
}