373 lines
15 KiB
C
373 lines
15 KiB
C
|
|
/**
|
|||
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|||
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
#pragma once
|
|||
|
|
#include <aws/states/SFN_EXPORTS.h>
|
|||
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|||
|
|
#include <aws/states/model/StateMachineStatus.h>
|
|||
|
|
#include <aws/states/model/StateMachineType.h>
|
|||
|
|
#include <aws/core/utils/DateTime.h>
|
|||
|
|
#include <aws/states/model/LoggingConfiguration.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>< > { } [
|
|||
|
|
* ]</code> </p> </li> <li> <p>wildcard characters <code>? *</code> </p> </li> <li>
|
|||
|
|
* <p>special characters <code>" # % \ ^ | ~ ` $ & , ; : /</code> </p> </li>
|
|||
|
|
* <li> <p>control characters (<code>U+0000-001F</code>,
|
|||
|
|
* <code>U+007F-009F</code>)</p> </li> </ul> <p>To enable logging with CloudWatch
|
|||
|
|
* Logs, the name should only contain 0-9, A-Z, a-z, - and _.</p>
|
|||
|
|
*/
|
|||
|
|
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>< > { } [
|
|||
|
|
* ]</code> </p> </li> <li> <p>wildcard characters <code>? *</code> </p> </li> <li>
|
|||
|
|
* <p>special characters <code>" # % \ ^ | ~ ` $ & , ; : /</code> </p> </li>
|
|||
|
|
* <li> <p>control characters (<code>U+0000-001F</code>,
|
|||
|
|
* <code>U+007F-009F</code>)</p> </li> </ul> <p>To enable logging with CloudWatch
|
|||
|
|
* Logs, the name should only contain 0-9, A-Z, a-z, - and _.</p>
|
|||
|
|
*/
|
|||
|
|
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>< > { } [
|
|||
|
|
* ]</code> </p> </li> <li> <p>wildcard characters <code>? *</code> </p> </li> <li>
|
|||
|
|
* <p>special characters <code>" # % \ ^ | ~ ` $ & , ; : /</code> </p> </li>
|
|||
|
|
* <li> <p>control characters (<code>U+0000-001F</code>,
|
|||
|
|
* <code>U+007F-009F</code>)</p> </li> </ul> <p>To enable logging with CloudWatch
|
|||
|
|
* Logs, the name should only contain 0-9, A-Z, a-z, - and _.</p>
|
|||
|
|
*/
|
|||
|
|
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>< > { } [
|
|||
|
|
* ]</code> </p> </li> <li> <p>wildcard characters <code>? *</code> </p> </li> <li>
|
|||
|
|
* <p>special characters <code>" # % \ ^ | ~ ` $ & , ; : /</code> </p> </li>
|
|||
|
|
* <li> <p>control characters (<code>U+0000-001F</code>,
|
|||
|
|
* <code>U+007F-009F</code>)</p> </li> </ul> <p>To enable logging with CloudWatch
|
|||
|
|
* Logs, the name should only contain 0-9, A-Z, a-z, - and _.</p>
|
|||
|
|
*/
|
|||
|
|
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>< > { } [
|
|||
|
|
* ]</code> </p> </li> <li> <p>wildcard characters <code>? *</code> </p> </li> <li>
|
|||
|
|
* <p>special characters <code>" # % \ ^ | ~ ` $ & , ; : /</code> </p> </li>
|
|||
|
|
* <li> <p>control characters (<code>U+0000-001F</code>,
|
|||
|
|
* <code>U+007F-009F</code>)</p> </li> </ul> <p>To enable logging with CloudWatch
|
|||
|
|
* Logs, the name should only contain 0-9, A-Z, a-z, - and _.</p>
|
|||
|
|
*/
|
|||
|
|
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>< > { } [
|
|||
|
|
* ]</code> </p> </li> <li> <p>wildcard characters <code>? *</code> </p> </li> <li>
|
|||
|
|
* <p>special characters <code>" # % \ ^ | ~ ` $ & , ; : /</code> </p> </li>
|
|||
|
|
* <li> <p>control characters (<code>U+0000-001F</code>,
|
|||
|
|
* <code>U+007F-009F</code>)</p> </li> </ul> <p>To enable logging with CloudWatch
|
|||
|
|
* Logs, the name should only contain 0-9, A-Z, a-z, - and _.</p>
|
|||
|
|
*/
|
|||
|
|
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>< > { } [
|
|||
|
|
* ]</code> </p> </li> <li> <p>wildcard characters <code>? *</code> </p> </li> <li>
|
|||
|
|
* <p>special characters <code>" # % \ ^ | ~ ` $ & , ; : /</code> </p> </li>
|
|||
|
|
* <li> <p>control characters (<code>U+0000-001F</code>,
|
|||
|
|
* <code>U+007F-009F</code>)</p> </li> </ul> <p>To enable logging with CloudWatch
|
|||
|
|
* Logs, the name should only contain 0-9, A-Z, a-z, - and _.</p>
|
|||
|
|
*/
|
|||
|
|
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 <code>type</code> of the state machine (<code>STANDARD</code> or
|
|||
|
|
* <code>EXPRESS</code>).</p>
|
|||
|
|
*/
|
|||
|
|
inline const StateMachineType& GetType() const{ return m_type; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The <code>type</code> of the state machine (<code>STANDARD</code> or
|
|||
|
|
* <code>EXPRESS</code>).</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetType(const StateMachineType& value) { m_type = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The <code>type</code> of the state machine (<code>STANDARD</code> or
|
|||
|
|
* <code>EXPRESS</code>).</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetType(StateMachineType&& value) { m_type = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The <code>type</code> of the state machine (<code>STANDARD</code> or
|
|||
|
|
* <code>EXPRESS</code>).</p>
|
|||
|
|
*/
|
|||
|
|
inline DescribeStateMachineResult& WithType(const StateMachineType& value) { SetType(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The <code>type</code> of the state machine (<code>STANDARD</code> or
|
|||
|
|
* <code>EXPRESS</code>).</p>
|
|||
|
|
*/
|
|||
|
|
inline DescribeStateMachineResult& WithType(StateMachineType&& value) { SetType(std::move(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;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
inline const LoggingConfiguration& GetLoggingConfiguration() const{ return m_loggingConfiguration; }
|
|||
|
|
|
|||
|
|
|
|||
|
|
inline void SetLoggingConfiguration(const LoggingConfiguration& value) { m_loggingConfiguration = value; }
|
|||
|
|
|
|||
|
|
|
|||
|
|
inline void SetLoggingConfiguration(LoggingConfiguration&& value) { m_loggingConfiguration = std::move(value); }
|
|||
|
|
|
|||
|
|
|
|||
|
|
inline DescribeStateMachineResult& WithLoggingConfiguration(const LoggingConfiguration& value) { SetLoggingConfiguration(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
inline DescribeStateMachineResult& WithLoggingConfiguration(LoggingConfiguration&& value) { SetLoggingConfiguration(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;
|
|||
|
|
|
|||
|
|
StateMachineType m_type;
|
|||
|
|
|
|||
|
|
Aws::Utils::DateTime m_creationDate;
|
|||
|
|
|
|||
|
|
LoggingConfiguration m_loggingConfiguration;
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
} // namespace Model
|
|||
|
|
} // namespace SFN
|
|||
|
|
} // namespace Aws
|