/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace EventBridge { namespace Model { class AWS_EVENTBRIDGE_API DescribeRuleResult { public: DescribeRuleResult(); DescribeRuleResult(const Aws::AmazonWebServiceResult& result); DescribeRuleResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The name of the rule.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the rule.

*/ inline void SetName(const Aws::String& value) { m_name = value; } /** *

The name of the rule.

*/ inline void SetName(Aws::String&& value) { m_name = std::move(value); } /** *

The name of the rule.

*/ inline void SetName(const char* value) { m_name.assign(value); } /** *

The name of the rule.

*/ inline DescribeRuleResult& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the rule.

*/ inline DescribeRuleResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the rule.

*/ inline DescribeRuleResult& WithName(const char* value) { SetName(value); return *this;} /** *

The Amazon Resource Name (ARN) of the rule.

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

The Amazon Resource Name (ARN) of the rule.

*/ inline void SetArn(const Aws::String& value) { m_arn = value; } /** *

The Amazon Resource Name (ARN) of the rule.

*/ inline void SetArn(Aws::String&& value) { m_arn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the rule.

*/ inline void SetArn(const char* value) { m_arn.assign(value); } /** *

The Amazon Resource Name (ARN) of the rule.

*/ inline DescribeRuleResult& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the rule.

*/ inline DescribeRuleResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the rule.

*/ inline DescribeRuleResult& WithArn(const char* value) { SetArn(value); return *this;} /** *

The event pattern. For more information, see Events * and Event Patterns in the Amazon EventBridge User Guide.

*/ inline const Aws::String& GetEventPattern() const{ return m_eventPattern; } /** *

The event pattern. For more information, see Events * and Event Patterns in the Amazon EventBridge User Guide.

*/ inline void SetEventPattern(const Aws::String& value) { m_eventPattern = value; } /** *

The event pattern. For more information, see Events * and Event Patterns in the Amazon EventBridge User Guide.

*/ inline void SetEventPattern(Aws::String&& value) { m_eventPattern = std::move(value); } /** *

The event pattern. For more information, see Events * and Event Patterns in the Amazon EventBridge User Guide.

*/ inline void SetEventPattern(const char* value) { m_eventPattern.assign(value); } /** *

The event pattern. For more information, see Events * and Event Patterns in the Amazon EventBridge User Guide.

*/ inline DescribeRuleResult& WithEventPattern(const Aws::String& value) { SetEventPattern(value); return *this;} /** *

The event pattern. For more information, see Events * and Event Patterns in the Amazon EventBridge User Guide.

*/ inline DescribeRuleResult& WithEventPattern(Aws::String&& value) { SetEventPattern(std::move(value)); return *this;} /** *

The event pattern. For more information, see Events * and Event Patterns in the Amazon EventBridge User Guide.

*/ inline DescribeRuleResult& WithEventPattern(const char* value) { SetEventPattern(value); return *this;} /** *

The scheduling expression. For example, "cron(0 20 * * ? *)", "rate(5 * minutes)".

*/ inline const Aws::String& GetScheduleExpression() const{ return m_scheduleExpression; } /** *

The scheduling expression. For example, "cron(0 20 * * ? *)", "rate(5 * minutes)".

*/ inline void SetScheduleExpression(const Aws::String& value) { m_scheduleExpression = value; } /** *

The scheduling expression. For example, "cron(0 20 * * ? *)", "rate(5 * minutes)".

*/ inline void SetScheduleExpression(Aws::String&& value) { m_scheduleExpression = std::move(value); } /** *

The scheduling expression. For example, "cron(0 20 * * ? *)", "rate(5 * minutes)".

*/ inline void SetScheduleExpression(const char* value) { m_scheduleExpression.assign(value); } /** *

The scheduling expression. For example, "cron(0 20 * * ? *)", "rate(5 * minutes)".

*/ inline DescribeRuleResult& WithScheduleExpression(const Aws::String& value) { SetScheduleExpression(value); return *this;} /** *

The scheduling expression. For example, "cron(0 20 * * ? *)", "rate(5 * minutes)".

*/ inline DescribeRuleResult& WithScheduleExpression(Aws::String&& value) { SetScheduleExpression(std::move(value)); return *this;} /** *

The scheduling expression. For example, "cron(0 20 * * ? *)", "rate(5 * minutes)".

*/ inline DescribeRuleResult& WithScheduleExpression(const char* value) { SetScheduleExpression(value); return *this;} /** *

Specifies whether the rule is enabled or disabled.

*/ inline const RuleState& GetState() const{ return m_state; } /** *

Specifies whether the rule is enabled or disabled.

*/ inline void SetState(const RuleState& value) { m_state = value; } /** *

Specifies whether the rule is enabled or disabled.

*/ inline void SetState(RuleState&& value) { m_state = std::move(value); } /** *

Specifies whether the rule is enabled or disabled.

*/ inline DescribeRuleResult& WithState(const RuleState& value) { SetState(value); return *this;} /** *

Specifies whether the rule is enabled or disabled.

*/ inline DescribeRuleResult& WithState(RuleState&& value) { SetState(std::move(value)); return *this;} /** *

The description of the rule.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The description of the rule.

*/ inline void SetDescription(const Aws::String& value) { m_description = value; } /** *

The description of the rule.

*/ inline void SetDescription(Aws::String&& value) { m_description = std::move(value); } /** *

The description of the rule.

*/ inline void SetDescription(const char* value) { m_description.assign(value); } /** *

The description of the rule.

*/ inline DescribeRuleResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The description of the rule.

*/ inline DescribeRuleResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The description of the rule.

*/ inline DescribeRuleResult& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The Amazon Resource Name (ARN) of the IAM role associated with the rule.

*/ inline const Aws::String& GetRoleArn() const{ return m_roleArn; } /** *

The Amazon Resource Name (ARN) of the IAM role associated with the rule.

*/ inline void SetRoleArn(const Aws::String& value) { m_roleArn = value; } /** *

The Amazon Resource Name (ARN) of the IAM role associated with the rule.

*/ inline void SetRoleArn(Aws::String&& value) { m_roleArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the IAM role associated with the rule.

*/ inline void SetRoleArn(const char* value) { m_roleArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the IAM role associated with the rule.

*/ inline DescribeRuleResult& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the IAM role associated with the rule.

*/ inline DescribeRuleResult& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the IAM role associated with the rule.

*/ inline DescribeRuleResult& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} /** *

If this is a managed rule, created by an AWS service on your behalf, this * field displays the principal name of the AWS service that created the rule.

*/ inline const Aws::String& GetManagedBy() const{ return m_managedBy; } /** *

If this is a managed rule, created by an AWS service on your behalf, this * field displays the principal name of the AWS service that created the rule.

*/ inline void SetManagedBy(const Aws::String& value) { m_managedBy = value; } /** *

If this is a managed rule, created by an AWS service on your behalf, this * field displays the principal name of the AWS service that created the rule.

*/ inline void SetManagedBy(Aws::String&& value) { m_managedBy = std::move(value); } /** *

If this is a managed rule, created by an AWS service on your behalf, this * field displays the principal name of the AWS service that created the rule.

*/ inline void SetManagedBy(const char* value) { m_managedBy.assign(value); } /** *

If this is a managed rule, created by an AWS service on your behalf, this * field displays the principal name of the AWS service that created the rule.

*/ inline DescribeRuleResult& WithManagedBy(const Aws::String& value) { SetManagedBy(value); return *this;} /** *

If this is a managed rule, created by an AWS service on your behalf, this * field displays the principal name of the AWS service that created the rule.

*/ inline DescribeRuleResult& WithManagedBy(Aws::String&& value) { SetManagedBy(std::move(value)); return *this;} /** *

If this is a managed rule, created by an AWS service on your behalf, this * field displays the principal name of the AWS service that created the rule.

*/ inline DescribeRuleResult& WithManagedBy(const char* value) { SetManagedBy(value); return *this;} /** *

The event bus associated with the rule.

*/ inline const Aws::String& GetEventBusName() const{ return m_eventBusName; } /** *

The event bus associated with the rule.

*/ inline void SetEventBusName(const Aws::String& value) { m_eventBusName = value; } /** *

The event bus associated with the rule.

*/ inline void SetEventBusName(Aws::String&& value) { m_eventBusName = std::move(value); } /** *

The event bus associated with the rule.

*/ inline void SetEventBusName(const char* value) { m_eventBusName.assign(value); } /** *

The event bus associated with the rule.

*/ inline DescribeRuleResult& WithEventBusName(const Aws::String& value) { SetEventBusName(value); return *this;} /** *

The event bus associated with the rule.

*/ inline DescribeRuleResult& WithEventBusName(Aws::String&& value) { SetEventBusName(std::move(value)); return *this;} /** *

The event bus associated with the rule.

*/ inline DescribeRuleResult& WithEventBusName(const char* value) { SetEventBusName(value); return *this;} private: Aws::String m_name; Aws::String m_arn; Aws::String m_eventPattern; Aws::String m_scheduleExpression; RuleState m_state; Aws::String m_description; Aws::String m_roleArn; Aws::String m_managedBy; Aws::String m_eventBusName; }; } // namespace Model } // namespace EventBridge } // namespace Aws