text: /*
  * Copyright 2010-2016 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.
  */
  #pragma once
  #include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
  #include <aws/core/utils/memory/stl/AWSString.h>
  #include <aws/core/utils/DateTime.h>
  #include <aws/core/utils/memory/stl/AWSVector.h>
  #include <aws/cognito-idp/model/ExplicitAuthFlowsType.h>
  
  namespace Aws
  {
  namespace Utils
  {
  namespace Json
  {
    class JsonValue;
  } // namespace Json
  } // namespace Utils
  namespace CognitoIdentityProvider
  {
  namespace Model
  {
  
    /**
     * <p>A user pool of the client type.</p>
     */
    class AWS_COGNITOIDENTITYPROVIDER_API UserPoolClientType
    {
    public:
      UserPoolClientType();
      UserPoolClientType(const Aws::Utils::Json::JsonValue& jsonValue);
      UserPoolClientType& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
      Aws::Utils::Json::JsonValue Jsonize() const;
  
      /**
       * <p>The user pool ID for the user pool client.</p>
       */
      inline const Aws::String& GetUserPoolId() const{ return m_userPoolId; }
  
      /**
       * <p>The user pool ID for the user pool client.</p>
       */
      inline void SetUserPoolId(const Aws::String& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = value; }
  
      /**
       * <p>The user pool ID for the user pool client.</p>
       */
      inline void SetUserPoolId(Aws::String&& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = value; }
  
      /**
       * <p>The user pool ID for the user pool client.</p>
       */
      inline void SetUserPoolId(const char* value) { m_userPoolIdHasBeenSet = true; m_userPoolId.assign(value); }
  
      /**
       * <p>The user pool ID for the user pool client.</p>
       */
      inline UserPoolClientType& WithUserPoolId(const Aws::String& value) { SetUserPoolId(value); return *this;}
  
      /**
       * <p>The user pool ID for the user pool client.</p>
       */
      inline UserPoolClientType& WithUserPoolId(Aws::String&& value) { SetUserPoolId(value); return *this;}
  
      /**
       * <p>The user pool ID for the user pool client.</p>
       */
      inline UserPoolClientType& WithUserPoolId(const char* value) { SetUserPoolId(value); return *this;}
  
      /**
       * <p>The client name from the user pool request of the client type.</p>
       */
      inline const Aws::String& GetClientName() const{ return m_clientName; }
  
      /**
       * <p>The client name from the user pool request of the client type.</p>
       */
      inline void SetClientName(const Aws::String& value) { m_clientNameHasBeenSet = true; m_clientName = value; }
  
      /**
       * <p>The client name from the user pool request of the client type.</p>
       */
      inline void SetClientName(Aws::String&& value) { m_clientNameHasBeenSet = true; m_clientName = value; }
  
      /**
       * <p>The client name from the user pool request of the client type.</p>
       */
      inline void SetClientName(const char* value) { m_clientNameHasBeenSet = true; m_clientName.assign(value); }
  
      /**
       * <p>The client name from the user pool request of the client type.</p>
       */
      inline UserPoolClientType& WithClientName(const Aws::String& value) { SetClientName(value); return *this;}
  
      /**
       * <p>The client name from the user pool request of the client type.</p>
       */
      inline UserPoolClientType& WithClientName(Aws::String&& value) { SetClientName(value); return *this;}
  
      /**
       * <p>The client name from the user pool request of the client type.</p>
       */
      inline UserPoolClientType& WithClientName(const char* value) { SetClientName(value); return *this;}
  
      /**
       * <p>The ID of the client associated with the user pool.</p>
       */
      inline const Aws::String& GetClientId() const{ return m_clientId; }
  
      /**
       * <p>The ID of the client associated with the user pool.</p>
       */
      inline void SetClientId(const Aws::String& value) { m_clientIdHasBeenSet = true; m_clientId = value; }
  
      /**
       * <p>The ID of the client associated with the user pool.</p>
       */
      inline void SetClientId(Aws::String&& value) { m_clientIdHasBeenSet = true; m_clientId = value; }
  
      /**
       * <p>The ID of the client associated with the user pool.</p>
       */
      inline void SetClientId(const char* value) { m_clientIdHasBeenSet = true; m_clientId.assign(value); }
  
      /**
       * <p>The ID of the client associated with the user pool.</p>
       */
      inline UserPoolClientType& WithClientId(const Aws::String& value) { SetClientId(value); return *this;}
  
      /**
       * <p>The ID of the client associated with the user pool.</p>
       */
      inline UserPoolClientType& WithClientId(Aws::String&& value) { SetClientId(value); return *this;}
  
      /**
       * <p>The ID of the client associated with the user pool.</p>
       */
      inline UserPoolClientType& WithClientId(const char* value) { SetClientId(value); return *this;}
  
      /**
       * <p>The client secret from the user pool request of the client type.</p>
       */
      inline const Aws::String& GetClientSecret() const{ return m_clientSecret; }
  
      /**
       * <p>The client secret from the user pool request of the client type.</p>
       */
      inline void SetClientSecret(const Aws::String& value) { m_clientSecretHasBeenSet = true; m_clientSecret = value; }
  
      /**
       * <p>The client secret from the user pool request of the client type.</p>
       */
      inline void SetClientSecret(Aws::String&& value) { m_clientSecretHasBeenSet = true; m_clientSecret = value; }
  
      /**
       * <p>The client secret from the user pool request of the client type.</p>
       */
      inline void SetClientSecret(const char* value) { m_clientSecretHasBeenSet = true; m_clientSecret.assign(value); }
  
      /**
       * <p>The client secret from the user pool request of the client type.</p>
       */
      inline UserPoolClientType& WithClientSecret(const Aws::String& value) { SetClientSecret(value); return *this;}
  
      /**
       * <p>The client secret from the user pool request of the client type.</p>
       */
      inline UserPoolClientType& WithClientSecret(Aws::String&& value) { SetClientSecret(value); return *this;}
  
      /**
       * <p>The client secret from the user pool request of the client type.</p>
       */
      inline UserPoolClientType& WithClientSecret(const char* value) { SetClientSecret(value); return *this;}
  
      /**
       * <p>The last modified date from the user pool request of the client type.</p>
       */
      inline const Aws::Utils::DateTime& GetLastModifiedDate() const{ return m_lastModifiedDate; }
  
      /**
       * <p>The last modified date from the user pool request of the client type.</p>
       */
      inline void SetLastModifiedDate(const Aws::Utils::DateTime& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = value; }
  
      /**
       * <p>The last modified date from the user pool request of the client type.</p>
       */
      inline void SetLastModifiedDate(Aws::Utils::DateTime&& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = value; }
  
      /**
       * <p>The last modified date from the user pool request of the client type.</p>
       */
      inline UserPoolClientType& WithLastModifiedDate(const Aws::Utils::DateTime& value) { SetLastModifiedDate(value); return *this;}
  
      /**
       * <p>The last modified date from the user pool request of the client type.</p>
       */
      inline UserPoolClientType& WithLastModifiedDate(Aws::Utils::DateTime&& value) { SetLastModifiedDate(value); return *this;}
  
      /**
       * <p>The creation date from the user pool request of the client type.</p>
       */
      inline const Aws::Utils::DateTime& GetCreationDate() const{ return m_creationDate; }
  
      /**
       * <p>The creation date from the user pool request of the client type.</p>
       */
      inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDateHasBeenSet = true; m_creationDate = value; }
  
      /**
       * <p>The creation date from the user pool request of the client type.</p>
       */
      inline void SetCreationDate(Aws::Utils::DateTime&& value) { m_creationDateHasBeenSet = true; m_creationDate = value; }
  
      /**
       * <p>The creation date from the user pool request of the client type.</p>
       */
      inline UserPoolClientType& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;}
  
      /**
       * <p>The creation date from the user pool request of the client type.</p>
       */
      inline UserPoolClientType& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(value); return *this;}
  
      /**
       * <p>The validity of the refresh token.</p>
       */
      inline int GetRefreshTokenValidity() const{ return m_refreshTokenValidity; }
  
      /**
       * <p>The validity of the refresh token.</p>
       */
      inline void SetRefreshTokenValidity(int value) { m_refreshTokenValidityHasBeenSet = true; m_refreshTokenValidity = value; }
  
      /**
       * <p>The validity of the refresh token.</p>
       */
      inline UserPoolClientType& WithRefreshTokenValidity(int value) { SetRefreshTokenValidity(value); return *this;}
  
      /**
       * <p>The Read-only attributes.</p>
       */
      inline const Aws::Vector<Aws::String>& GetReadAttributes() const{ return m_readAttributes; }
  
      /**
       * <p>The Read-only attributes.</p>
       */
      inline void SetReadAttributes(const Aws::Vector<Aws::String>& value) { m_readAttributesHasBeenSet = true; m_readAttributes = value; }
  
      /**
       * <p>The Read-only attributes.</p>
       */
      inline void SetReadAttributes(Aws::Vector<Aws::String>&& value) { m_readAttributesHasBeenSet = true; m_readAttributes = value; }
  
      /**
       * <p>The Read-only attributes.</p>
       */
      inline UserPoolClientType& WithReadAttributes(const Aws::Vector<Aws::String>& value) { SetReadAttributes(value); return *this;}
  
      /**
       * <p>The Read-only attributes.</p>
       */
      inline UserPoolClientType& WithReadAttributes(Aws::Vector<Aws::String>&& value) { SetReadAttributes(value); return *this;}
  
      /**
       * <p>The Read-only attributes.</p>
       */
      inline UserPoolClientType& AddReadAttributes(const Aws::String& value) { m_readAttributesHasBeenSet = true; m_readAttributes.push_back(value); return *this; }
  
      /**
       * <p>The Read-only attributes.</p>
       */
      inline UserPoolClientType& AddReadAttributes(Aws::String&& value) { m_readAttributesHasBeenSet = true; m_readAttributes.push_back(value); return *this; }
  
      /**
       * <p>The Read-only attributes.</p>
       */
      inline UserPoolClientType& AddReadAttributes(const char* value) { m_readAttributesHasBeenSet = true; m_readAttributes.push_back(value); return *this; }
  
      /**
       * <p>The writeable attributes.</p>
       */
      inline const Aws::Vector<Aws::String>& GetWriteAttributes() const{ return m_writeAttributes; }
  
      /**
       * <p>The writeable attributes.</p>
       */
      inline void SetWriteAttributes(const Aws::Vector<Aws::String>& value) { m_writeAttributesHasBeenSet = true; m_writeAttributes = value; }
  
      /**
       * <p>The writeable attributes.</p>
       */
      inline void SetWriteAttributes(Aws::Vector<Aws::String>&& value) { m_writeAttributesHasBeenSet = true; m_writeAttributes = value; }
  
      /**
       * <p>The writeable attributes.</p>
       */
      inline UserPoolClientType& WithWriteAttributes(const Aws::Vector<Aws::String>& value) { SetWriteAttributes(value); return *this;}
  
      /**
       * <p>The writeable attributes.</p>
       */
      inline UserPoolClientType& WithWriteAttributes(Aws::Vector<Aws::String>&& value) { SetWriteAttributes(value); return *this;}
  
      /**
       * <p>The writeable attributes.</p>
       */
      inline UserPoolClientType& AddWriteAttributes(const Aws::String& value) { m_writeAttributesHasBeenSet = true; m_writeAttributes.push_back(value); return *this; }
  
      /**
       * <p>The writeable attributes.</p>
       */
      inline UserPoolClientType& AddWriteAttributes(Aws::String&& value) { m_writeAttributesHasBeenSet = true; m_writeAttributes.push_back(value); return *this; }
  
      /**
       * <p>The writeable attributes.</p>
       */
      inline UserPoolClientType& AddWriteAttributes(const char* value) { m_writeAttributesHasBeenSet = true; m_writeAttributes.push_back(value); return *this; }
  
      /**
       * <p>The explicit authentication flows.</p>
       */
      inline const Aws::Vector<ExplicitAuthFlowsType>& GetExplicitAuthFlows() const{ return m_explicitAuthFlows; }
  
      /**
       * <p>The explicit authentication flows.</p>
       */
      inline void SetExplicitAuthFlows(const Aws::Vector<ExplicitAuthFlowsType>& value) { m_explicitAuthFlowsHasBeenSet = true; m_explicitAuthFlows = value; }
  
      /**
       * <p>The explicit authentication flows.</p>
       */
      inline void SetExplicitAuthFlows(Aws::Vector<ExplicitAuthFlowsType>&& value) { m_explicitAuthFlowsHasBeenSet = true; m_explicitAuthFlows = value; }
  
      /**
       * <p>The explicit authentication flows.</p>
       */
      inline UserPoolClientType& WithExplicitAuthFlows(const Aws::Vector<ExplicitAuthFlowsType>& value) { SetExplicitAuthFlows(value); return *this;}
  
      /**
       * <p>The explicit authentication flows.</p>
       */
      inline UserPoolClientType& WithExplicitAuthFlows(Aws::Vector<ExplicitAuthFlowsType>&& value) { SetExplicitAuthFlows(value); return *this;}
  
      /**
       * <p>The explicit authentication flows.</p>
       */
      inline UserPoolClientType& AddExplicitAuthFlows(const ExplicitAuthFlowsType& value) { m_explicitAuthFlowsHasBeenSet = true; m_explicitAuthFlows.push_back(value); return *this; }
  
      /**
       * <p>The explicit authentication flows.</p>
       */
      inline UserPoolClientType& AddExplicitAuthFlows(ExplicitAuthFlowsType&& value) { m_explicitAuthFlowsHasBeenSet = true; m_explicitAuthFlows.push_back(value); return *this; }
  
    private:
      Aws::String m_userPoolId;
      bool m_userPoolIdHasBeenSet;
      Aws::String m_clientName;
      bool m_clientNameHasBeenSet;
      Aws::String m_clientId;
      bool m_clientIdHasBeenSet;
      Aws::String m_clientSecret;
      bool m_clientSecretHasBeenSet;
      Aws::Utils::DateTime m_lastModifiedDate;
      bool m_lastModifiedDateHasBeenSet;
      Aws::Utils::DateTime m_creationDate;
      bool m_creationDateHasBeenSet;
      int m_refreshTokenValidity;
      bool m_refreshTokenValidityHasBeenSet;
      Aws::Vector<Aws::String> m_readAttributes;
      bool m_readAttributesHasBeenSet;
      Aws::Vector<Aws::String> m_writeAttributes;
      bool m_writeAttributesHasBeenSet;
      Aws::Vector<ExplicitAuthFlowsType> m_explicitAuthFlows;
      bool m_explicitAuthFlowsHasBeenSet;
    };
  
  } // namespace Model
  } // namespace CognitoIdentityProvider
  } // namespace Aws
  