/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace SSMContacts { namespace Model { /** */ class ListContactsRequest : public SSMContactsRequest { public: AWS_SSMCONTACTS_API ListContactsRequest(); // 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 "ListContacts"; } AWS_SSMCONTACTS_API Aws::String SerializePayload() const override; AWS_SSMCONTACTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The pagination token to continue to the next page of results.

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

The pagination token to continue to the next page of results.

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

The pagination token to continue to the next page of results.

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

The pagination token to continue to the next page of results.

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

The pagination token to continue to the next page of results.

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

The pagination token to continue to the next page of results.

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

The pagination token to continue to the next page of results.

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

The pagination token to continue to the next page of results.

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

The maximum number of contacts and escalation plans per page of results.

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

The maximum number of contacts and escalation plans per page of results.

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

The maximum number of contacts and escalation plans per page of results.

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

The maximum number of contacts and escalation plans per page of results.

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

Used to list only contacts who's aliases start with the specified prefix.

*/ inline const Aws::String& GetAliasPrefix() const{ return m_aliasPrefix; } /** *

Used to list only contacts who's aliases start with the specified prefix.

*/ inline bool AliasPrefixHasBeenSet() const { return m_aliasPrefixHasBeenSet; } /** *

Used to list only contacts who's aliases start with the specified prefix.

*/ inline void SetAliasPrefix(const Aws::String& value) { m_aliasPrefixHasBeenSet = true; m_aliasPrefix = value; } /** *

Used to list only contacts who's aliases start with the specified prefix.

*/ inline void SetAliasPrefix(Aws::String&& value) { m_aliasPrefixHasBeenSet = true; m_aliasPrefix = std::move(value); } /** *

Used to list only contacts who's aliases start with the specified prefix.

*/ inline void SetAliasPrefix(const char* value) { m_aliasPrefixHasBeenSet = true; m_aliasPrefix.assign(value); } /** *

Used to list only contacts who's aliases start with the specified prefix.

*/ inline ListContactsRequest& WithAliasPrefix(const Aws::String& value) { SetAliasPrefix(value); return *this;} /** *

Used to list only contacts who's aliases start with the specified prefix.

*/ inline ListContactsRequest& WithAliasPrefix(Aws::String&& value) { SetAliasPrefix(std::move(value)); return *this;} /** *

Used to list only contacts who's aliases start with the specified prefix.

*/ inline ListContactsRequest& WithAliasPrefix(const char* value) { SetAliasPrefix(value); return *this;} /** *

The type of contact. A contact is type PERSONAL and an * escalation plan is type ESCALATION.

*/ inline const ContactType& GetType() const{ return m_type; } /** *

The type of contact. A contact is type PERSONAL and an * escalation plan is type ESCALATION.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The type of contact. A contact is type PERSONAL and an * escalation plan is type ESCALATION.

*/ inline void SetType(const ContactType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The type of contact. A contact is type PERSONAL and an * escalation plan is type ESCALATION.

*/ inline void SetType(ContactType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The type of contact. A contact is type PERSONAL and an * escalation plan is type ESCALATION.

*/ inline ListContactsRequest& WithType(const ContactType& value) { SetType(value); return *this;} /** *

The type of contact. A contact is type PERSONAL and an * escalation plan is type ESCALATION.

*/ inline ListContactsRequest& WithType(ContactType&& value) { SetType(std::move(value)); return *this;} private: Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::String m_aliasPrefix; bool m_aliasPrefixHasBeenSet = false; ContactType m_type; bool m_typeHasBeenSet = false; }; } // namespace Model } // namespace SSMContacts } // namespace Aws