text: ﻿/**
   * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
   * SPDX-License-Identifier: Apache-2.0.
   */
  
  #pragma once
  #include <aws/ssm-contacts/SSMContacts_EXPORTS.h>
  #include <aws/ssm-contacts/SSMContactsRequest.h>
  #include <aws/core/utils/memory/stl/AWSString.h>
  #include <aws/ssm-contacts/model/ContactType.h>
  #include <utility>
  
  namespace Aws
  {
  namespace SSMContacts
  {
  namespace Model
  {
  
    /**
     */
    class AWS_SSMCONTACTS_API ListContactsRequest : public SSMContactsRequest
    {
    public:
      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::String SerializePayload() const override;
  
      Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
  
  
      /**
       * <p>The pagination token to continue to the next page of results.</p>
       */
      inline const Aws::String& GetNextToken() const{ return m_nextToken; }
  
      /**
       * <p>The pagination token to continue to the next page of results.</p>
       */
      inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
  
      /**
       * <p>The pagination token to continue to the next page of results.</p>
       */
      inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
  
      /**
       * <p>The pagination token to continue to the next page of results.</p>
       */
      inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
  
      /**
       * <p>The pagination token to continue to the next page of results.</p>
       */
      inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
  
      /**
       * <p>The pagination token to continue to the next page of results.</p>
       */
      inline ListContactsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
  
      /**
       * <p>The pagination token to continue to the next page of results.</p>
       */
      inline ListContactsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
  
      /**
       * <p>The pagination token to continue to the next page of results.</p>
       */
      inline ListContactsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
  
  
      /**
       * <p>The maximum number of contacts and escalation plans per page of results.</p>
       */
      inline int GetMaxResults() const{ return m_maxResults; }
  
      /**
       * <p>The maximum number of contacts and escalation plans per page of results.</p>
       */
      inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
  
      /**
       * <p>The maximum number of contacts and escalation plans per page of results.</p>
       */
      inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
  
      /**
       * <p>The maximum number of contacts and escalation plans per page of results.</p>
       */
      inline ListContactsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
  
  
      /**
       * <p>Used to list only contacts who's aliases start with the specified prefix.</p>
       */
      inline const Aws::String& GetAliasPrefix() const{ return m_aliasPrefix; }
  
      /**
       * <p>Used to list only contacts who's aliases start with the specified prefix.</p>
       */
      inline bool AliasPrefixHasBeenSet() const { return m_aliasPrefixHasBeenSet; }
  
      /**
       * <p>Used to list only contacts who's aliases start with the specified prefix.</p>
       */
      inline void SetAliasPrefix(const Aws::String& value) { m_aliasPrefixHasBeenSet = true; m_aliasPrefix = value; }
  
      /**
       * <p>Used to list only contacts who's aliases start with the specified prefix.</p>
       */
      inline void SetAliasPrefix(Aws::String&& value) { m_aliasPrefixHasBeenSet = true; m_aliasPrefix = std::move(value); }
  
      /**
       * <p>Used to list only contacts who's aliases start with the specified prefix.</p>
       */
      inline void SetAliasPrefix(const char* value) { m_aliasPrefixHasBeenSet = true; m_aliasPrefix.assign(value); }
  
      /**
       * <p>Used to list only contacts who's aliases start with the specified prefix.</p>
       */
      inline ListContactsRequest& WithAliasPrefix(const Aws::String& value) { SetAliasPrefix(value); return *this;}
  
      /**
       * <p>Used to list only contacts who's aliases start with the specified prefix.</p>
       */
      inline ListContactsRequest& WithAliasPrefix(Aws::String&& value) { SetAliasPrefix(std::move(value)); return *this;}
  
      /**
       * <p>Used to list only contacts who's aliases start with the specified prefix.</p>
       */
      inline ListContactsRequest& WithAliasPrefix(const char* value) { SetAliasPrefix(value); return *this;}
  
  
      /**
       * <p>The type of contact. A contact is type <code>PERSONAL</code> and an
       * escalation plan is type <code>ESCALATION</code>.</p>
       */
      inline const ContactType& GetType() const{ return m_type; }
  
      /**
       * <p>The type of contact. A contact is type <code>PERSONAL</code> and an
       * escalation plan is type <code>ESCALATION</code>.</p>
       */
      inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
  
      /**
       * <p>The type of contact. A contact is type <code>PERSONAL</code> and an
       * escalation plan is type <code>ESCALATION</code>.</p>
       */
      inline void SetType(const ContactType& value) { m_typeHasBeenSet = true; m_type = value; }
  
      /**
       * <p>The type of contact. A contact is type <code>PERSONAL</code> and an
       * escalation plan is type <code>ESCALATION</code>.</p>
       */
      inline void SetType(ContactType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
  
      /**
       * <p>The type of contact. A contact is type <code>PERSONAL</code> and an
       * escalation plan is type <code>ESCALATION</code>.</p>
       */
      inline ListContactsRequest& WithType(const ContactType& value) { SetType(value); return *this;}
  
      /**
       * <p>The type of contact. A contact is type <code>PERSONAL</code> and an
       * escalation plan is type <code>ESCALATION</code>.</p>
       */
      inline ListContactsRequest& WithType(ContactType&& value) { SetType(std::move(value)); return *this;}
  
    private:
  
      Aws::String m_nextToken;
      bool m_nextTokenHasBeenSet;
  
      int m_maxResults;
      bool m_maxResultsHasBeenSet;
  
      Aws::String m_aliasPrefix;
      bool m_aliasPrefixHasBeenSet;
  
      ContactType m_type;
      bool m_typeHasBeenSet;
    };
  
  } // namespace Model
  } // namespace SSMContacts
  } // namespace Aws
  