text: ﻿/*
  * Copyright 2010-2017 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/states/SFN_EXPORTS.h>
  #include <aws/core/utils/memory/stl/AWSString.h>
  #include <aws/states/model/StateMachineStatus.h>
  #include <aws/core/utils/DateTime.h>
  #include <utility>
  
  namespace Aws
  {
  template<typename RESULT_TYPE>
  class AmazonWebServiceResult;
  
  namespace Utils
  {
  namespace Json
  {
    class JsonValue;
  } // namespace Json
  } // namespace Utils
  namespace SFN
  {
  namespace Model
  {
    class AWS_SFN_API DescribeStateMachineResult
    {
    public:
      DescribeStateMachineResult();
      DescribeStateMachineResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
      DescribeStateMachineResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
  
  
      /**
       * <p>The Amazon Resource Name (ARN) that identifies the state machine.</p>
       */
      inline const Aws::String& GetStateMachineArn() const{ return m_stateMachineArn; }
  
      /**
       * <p>The Amazon Resource Name (ARN) that identifies the state machine.</p>
       */
      inline void SetStateMachineArn(const Aws::String& value) { m_stateMachineArn = value; }
  
      /**
       * <p>The Amazon Resource Name (ARN) that identifies the state machine.</p>
       */
      inline void SetStateMachineArn(Aws::String&& value) { m_stateMachineArn = std::move(value); }
  
      /**
       * <p>The Amazon Resource Name (ARN) that identifies the state machine.</p>
       */
      inline void SetStateMachineArn(const char* value) { m_stateMachineArn.assign(value); }
  
      /**
       * <p>The Amazon Resource Name (ARN) that identifies the state machine.</p>
       */
      inline DescribeStateMachineResult& WithStateMachineArn(const Aws::String& value) { SetStateMachineArn(value); return *this;}
  
      /**
       * <p>The Amazon Resource Name (ARN) that identifies the state machine.</p>
       */
      inline DescribeStateMachineResult& WithStateMachineArn(Aws::String&& value) { SetStateMachineArn(std::move(value)); return *this;}
  
      /**
       * <p>The Amazon Resource Name (ARN) that identifies the state machine.</p>
       */
      inline DescribeStateMachineResult& WithStateMachineArn(const char* value) { SetStateMachineArn(value); return *this;}
  
  
      /**
       * <p>The name of the state machine.</p> <p>A name must <i>not</i> contain:</p>
       * <ul> <li> <p>white space</p> </li> <li> <p>brackets <code>&lt; &gt; { } [
       * ]</code> </p> </li> <li> <p>wildcard characters <code>? *</code> </p> </li> <li>
       * <p>special characters <code>" # % \ ^ | ~ ` $ &amp; , ; : /</code> </p> </li>
       * <li> <p>control characters (<code>U+0000-001F</code>,
       * <code>U+007F-009F</code>)</p> </li> </ul>
       */
      inline const Aws::String& GetName() const{ return m_name; }
  
      /**
       * <p>The name of the state machine.</p> <p>A name must <i>not</i> contain:</p>
       * <ul> <li> <p>white space</p> </li> <li> <p>brackets <code>&lt; &gt; { } [
       * ]</code> </p> </li> <li> <p>wildcard characters <code>? *</code> </p> </li> <li>
       * <p>special characters <code>" # % \ ^ | ~ ` $ &amp; , ; : /</code> </p> </li>
       * <li> <p>control characters (<code>U+0000-001F</code>,
       * <code>U+007F-009F</code>)</p> </li> </ul>
       */
      inline void SetName(const Aws::String& value) { m_name = value; }
  
      /**
       * <p>The name of the state machine.</p> <p>A name must <i>not</i> contain:</p>
       * <ul> <li> <p>white space</p> </li> <li> <p>brackets <code>&lt; &gt; { } [
       * ]</code> </p> </li> <li> <p>wildcard characters <code>? *</code> </p> </li> <li>
       * <p>special characters <code>" # % \ ^ | ~ ` $ &amp; , ; : /</code> </p> </li>
       * <li> <p>control characters (<code>U+0000-001F</code>,
       * <code>U+007F-009F</code>)</p> </li> </ul>
       */
      inline void SetName(Aws::String&& value) { m_name = std::move(value); }
  
      /**
       * <p>The name of the state machine.</p> <p>A name must <i>not</i> contain:</p>
       * <ul> <li> <p>white space</p> </li> <li> <p>brackets <code>&lt; &gt; { } [
       * ]</code> </p> </li> <li> <p>wildcard characters <code>? *</code> </p> </li> <li>
       * <p>special characters <code>" # % \ ^ | ~ ` $ &amp; , ; : /</code> </p> </li>
       * <li> <p>control characters (<code>U+0000-001F</code>,
       * <code>U+007F-009F</code>)</p> </li> </ul>
       */
      inline void SetName(const char* value) { m_name.assign(value); }
  
      /**
       * <p>The name of the state machine.</p> <p>A name must <i>not</i> contain:</p>
       * <ul> <li> <p>white space</p> </li> <li> <p>brackets <code>&lt; &gt; { } [
       * ]</code> </p> </li> <li> <p>wildcard characters <code>? *</code> </p> </li> <li>
       * <p>special characters <code>" # % \ ^ | ~ ` $ &amp; , ; : /</code> </p> </li>
       * <li> <p>control characters (<code>U+0000-001F</code>,
       * <code>U+007F-009F</code>)</p> </li> </ul>
       */
      inline DescribeStateMachineResult& WithName(const Aws::String& value) { SetName(value); return *this;}
  
      /**
       * <p>The name of the state machine.</p> <p>A name must <i>not</i> contain:</p>
       * <ul> <li> <p>white space</p> </li> <li> <p>brackets <code>&lt; &gt; { } [
       * ]</code> </p> </li> <li> <p>wildcard characters <code>? *</code> </p> </li> <li>
       * <p>special characters <code>" # % \ ^ | ~ ` $ &amp; , ; : /</code> </p> </li>
       * <li> <p>control characters (<code>U+0000-001F</code>,
       * <code>U+007F-009F</code>)</p> </li> </ul>
       */
      inline DescribeStateMachineResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
  
      /**
       * <p>The name of the state machine.</p> <p>A name must <i>not</i> contain:</p>
       * <ul> <li> <p>white space</p> </li> <li> <p>brackets <code>&lt; &gt; { } [
       * ]</code> </p> </li> <li> <p>wildcard characters <code>? *</code> </p> </li> <li>
       * <p>special characters <code>" # % \ ^ | ~ ` $ &amp; , ; : /</code> </p> </li>
       * <li> <p>control characters (<code>U+0000-001F</code>,
       * <code>U+007F-009F</code>)</p> </li> </ul>
       */
      inline DescribeStateMachineResult& WithName(const char* value) { SetName(value); return *this;}
  
  
      /**
       * <p>The current status of the state machine.</p>
       */
      inline const StateMachineStatus& GetStatus() const{ return m_status; }
  
      /**
       * <p>The current status of the state machine.</p>
       */
      inline void SetStatus(const StateMachineStatus& value) { m_status = value; }
  
      /**
       * <p>The current status of the state machine.</p>
       */
      inline void SetStatus(StateMachineStatus&& value) { m_status = std::move(value); }
  
      /**
       * <p>The current status of the state machine.</p>
       */
      inline DescribeStateMachineResult& WithStatus(const StateMachineStatus& value) { SetStatus(value); return *this;}
  
      /**
       * <p>The current status of the state machine.</p>
       */
      inline DescribeStateMachineResult& WithStatus(StateMachineStatus&& value) { SetStatus(std::move(value)); return *this;}
  
  
      /**
       * <p>The Amazon States Language definition of the state machine. See <a
       * href="https://docs.aws.amazon.com/step-functions/latest/dg/concepts-amazon-states-language.html">Amazon
       * States Language</a>.</p>
       */
      inline const Aws::String& GetDefinition() const{ return m_definition; }
  
      /**
       * <p>The Amazon States Language definition of the state machine. See <a
       * href="https://docs.aws.amazon.com/step-functions/latest/dg/concepts-amazon-states-language.html">Amazon
       * States Language</a>.</p>
       */
      inline void SetDefinition(const Aws::String& value) { m_definition = value; }
  
      /**
       * <p>The Amazon States Language definition of the state machine. See <a
       * href="https://docs.aws.amazon.com/step-functions/latest/dg/concepts-amazon-states-language.html">Amazon
       * States Language</a>.</p>
       */
      inline void SetDefinition(Aws::String&& value) { m_definition = std::move(value); }
  
      /**
       * <p>The Amazon States Language definition of the state machine. See <a
       * href="https://docs.aws.amazon.com/step-functions/latest/dg/concepts-amazon-states-language.html">Amazon
       * States Language</a>.</p>
       */
      inline void SetDefinition(const char* value) { m_definition.assign(value); }
  
      /**
       * <p>The Amazon States Language definition of the state machine. See <a
       * href="https://docs.aws.amazon.com/step-functions/latest/dg/concepts-amazon-states-language.html">Amazon
       * States Language</a>.</p>
       */
      inline DescribeStateMachineResult& WithDefinition(const Aws::String& value) { SetDefinition(value); return *this;}
  
      /**
       * <p>The Amazon States Language definition of the state machine. See <a
       * href="https://docs.aws.amazon.com/step-functions/latest/dg/concepts-amazon-states-language.html">Amazon
       * States Language</a>.</p>
       */
      inline DescribeStateMachineResult& WithDefinition(Aws::String&& value) { SetDefinition(std::move(value)); return *this;}
  
      /**
       * <p>The Amazon States Language definition of the state machine. See <a
       * href="https://docs.aws.amazon.com/step-functions/latest/dg/concepts-amazon-states-language.html">Amazon
       * States Language</a>.</p>
       */
      inline DescribeStateMachineResult& WithDefinition(const char* value) { SetDefinition(value); return *this;}
  
  
      /**
       * <p>The Amazon Resource Name (ARN) of the IAM role used when creating this state
       * machine. (The IAM role maintains security by granting Step Functions access to
       * AWS resources.)</p>
       */
      inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
  
      /**
       * <p>The Amazon Resource Name (ARN) of the IAM role used when creating this state
       * machine. (The IAM role maintains security by granting Step Functions access to
       * AWS resources.)</p>
       */
      inline void SetRoleArn(const Aws::String& value) { m_roleArn = value; }
  
      /**
       * <p>The Amazon Resource Name (ARN) of the IAM role used when creating this state
       * machine. (The IAM role maintains security by granting Step Functions access to
       * AWS resources.)</p>
       */
      inline void SetRoleArn(Aws::String&& value) { m_roleArn = std::move(value); }
  
      /**
       * <p>The Amazon Resource Name (ARN) of the IAM role used when creating this state
       * machine. (The IAM role maintains security by granting Step Functions access to
       * AWS resources.)</p>
       */
      inline void SetRoleArn(const char* value) { m_roleArn.assign(value); }
  
      /**
       * <p>The Amazon Resource Name (ARN) of the IAM role used when creating this state
       * machine. (The IAM role maintains security by granting Step Functions access to
       * AWS resources.)</p>
       */
      inline DescribeStateMachineResult& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
  
      /**
       * <p>The Amazon Resource Name (ARN) of the IAM role used when creating this state
       * machine. (The IAM role maintains security by granting Step Functions access to
       * AWS resources.)</p>
       */
      inline DescribeStateMachineResult& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
  
      /**
       * <p>The Amazon Resource Name (ARN) of the IAM role used when creating this state
       * machine. (The IAM role maintains security by granting Step Functions access to
       * AWS resources.)</p>
       */
      inline DescribeStateMachineResult& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
  
  
      /**
       * <p>The date the state machine is created.</p>
       */
      inline const Aws::Utils::DateTime& GetCreationDate() const{ return m_creationDate; }
  
      /**
       * <p>The date the state machine is created.</p>
       */
      inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDate = value; }
  
      /**
       * <p>The date the state machine is created.</p>
       */
      inline void SetCreationDate(Aws::Utils::DateTime&& value) { m_creationDate = std::move(value); }
  
      /**
       * <p>The date the state machine is created.</p>
       */
      inline DescribeStateMachineResult& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;}
  
      /**
       * <p>The date the state machine is created.</p>
       */
      inline DescribeStateMachineResult& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(std::move(value)); return *this;}
  
    private:
  
      Aws::String m_stateMachineArn;
  
      Aws::String m_name;
  
      StateMachineStatus m_status;
  
      Aws::String m_definition;
  
      Aws::String m_roleArn;
  
      Aws::Utils::DateTime m_creationDate;
    };
  
  } // namespace Model
  } // namespace SFN
  } // namespace Aws
  