231 lines
8.8 KiB
C++
231 lines
8.8 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/states/SFNRequest.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <aws/states/model/LoggingConfiguration.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace SFN
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
*/
|
|
class AWS_SFN_API UpdateStateMachineRequest : public SFNRequest
|
|
{
|
|
public:
|
|
UpdateStateMachineRequest();
|
|
|
|
// 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 "UpdateStateMachine"; }
|
|
|
|
Aws::String SerializePayload() const override;
|
|
|
|
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
|
|
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the state machine.</p>
|
|
*/
|
|
inline const Aws::String& GetStateMachineArn() const{ return m_stateMachineArn; }
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the state machine.</p>
|
|
*/
|
|
inline bool StateMachineArnHasBeenSet() const { return m_stateMachineArnHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the state machine.</p>
|
|
*/
|
|
inline void SetStateMachineArn(const Aws::String& value) { m_stateMachineArnHasBeenSet = true; m_stateMachineArn = value; }
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the state machine.</p>
|
|
*/
|
|
inline void SetStateMachineArn(Aws::String&& value) { m_stateMachineArnHasBeenSet = true; m_stateMachineArn = std::move(value); }
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the state machine.</p>
|
|
*/
|
|
inline void SetStateMachineArn(const char* value) { m_stateMachineArnHasBeenSet = true; m_stateMachineArn.assign(value); }
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the state machine.</p>
|
|
*/
|
|
inline UpdateStateMachineRequest& WithStateMachineArn(const Aws::String& value) { SetStateMachineArn(value); return *this;}
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the state machine.</p>
|
|
*/
|
|
inline UpdateStateMachineRequest& WithStateMachineArn(Aws::String&& value) { SetStateMachineArn(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the state machine.</p>
|
|
*/
|
|
inline UpdateStateMachineRequest& WithStateMachineArn(const char* value) { SetStateMachineArn(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 bool DefinitionHasBeenSet() const { return m_definitionHasBeenSet; }
|
|
|
|
/**
|
|
* <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_definitionHasBeenSet = true; 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_definitionHasBeenSet = true; 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_definitionHasBeenSet = true; 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 UpdateStateMachineRequest& 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 UpdateStateMachineRequest& 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 UpdateStateMachineRequest& WithDefinition(const char* value) { SetDefinition(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the IAM role of the state machine.</p>
|
|
*/
|
|
inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the IAM role of the state machine.</p>
|
|
*/
|
|
inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the IAM role of the state machine.</p>
|
|
*/
|
|
inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the IAM role of the state machine.</p>
|
|
*/
|
|
inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the IAM role of the state machine.</p>
|
|
*/
|
|
inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the IAM role of the state machine.</p>
|
|
*/
|
|
inline UpdateStateMachineRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the IAM role of the state machine.</p>
|
|
*/
|
|
inline UpdateStateMachineRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the IAM role of the state machine.</p>
|
|
*/
|
|
inline UpdateStateMachineRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The <code>LoggingConfiguration</code> data type is used to set CloudWatch
|
|
* Logs options.</p>
|
|
*/
|
|
inline const LoggingConfiguration& GetLoggingConfiguration() const{ return m_loggingConfiguration; }
|
|
|
|
/**
|
|
* <p>The <code>LoggingConfiguration</code> data type is used to set CloudWatch
|
|
* Logs options.</p>
|
|
*/
|
|
inline bool LoggingConfigurationHasBeenSet() const { return m_loggingConfigurationHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The <code>LoggingConfiguration</code> data type is used to set CloudWatch
|
|
* Logs options.</p>
|
|
*/
|
|
inline void SetLoggingConfiguration(const LoggingConfiguration& value) { m_loggingConfigurationHasBeenSet = true; m_loggingConfiguration = value; }
|
|
|
|
/**
|
|
* <p>The <code>LoggingConfiguration</code> data type is used to set CloudWatch
|
|
* Logs options.</p>
|
|
*/
|
|
inline void SetLoggingConfiguration(LoggingConfiguration&& value) { m_loggingConfigurationHasBeenSet = true; m_loggingConfiguration = std::move(value); }
|
|
|
|
/**
|
|
* <p>The <code>LoggingConfiguration</code> data type is used to set CloudWatch
|
|
* Logs options.</p>
|
|
*/
|
|
inline UpdateStateMachineRequest& WithLoggingConfiguration(const LoggingConfiguration& value) { SetLoggingConfiguration(value); return *this;}
|
|
|
|
/**
|
|
* <p>The <code>LoggingConfiguration</code> data type is used to set CloudWatch
|
|
* Logs options.</p>
|
|
*/
|
|
inline UpdateStateMachineRequest& WithLoggingConfiguration(LoggingConfiguration&& value) { SetLoggingConfiguration(std::move(value)); return *this;}
|
|
|
|
private:
|
|
|
|
Aws::String m_stateMachineArn;
|
|
bool m_stateMachineArnHasBeenSet;
|
|
|
|
Aws::String m_definition;
|
|
bool m_definitionHasBeenSet;
|
|
|
|
Aws::String m_roleArn;
|
|
bool m_roleArnHasBeenSet;
|
|
|
|
LoggingConfiguration m_loggingConfiguration;
|
|
bool m_loggingConfigurationHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace SFN
|
|
} // namespace Aws
|