/*
* Copyright 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.
*/
/*
* Do not modify this file. This file is generated from the events-2015-10-07.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudWatchEvents.Model
{
///
/// This is the response object from the DescribeRule operation.
///
public partial class DescribeRuleResponse : AmazonWebServiceResponse
{
private string _arn;
private string _createdBy;
private string _description;
private string _eventBusName;
private string _eventPattern;
private string _managedBy;
private string _name;
private string _roleArn;
private string _scheduleExpression;
private RuleState _state;
///
/// Gets and sets the property Arn.
///
/// The Amazon Resource Name (ARN) of the rule.
///
///
[AWSProperty(Min=1, Max=1600)]
public string Arn
{
get { return this._arn; }
set { this._arn = value; }
}
// Check to see if Arn property is set
internal bool IsSetArn()
{
return this._arn != null;
}
///
/// Gets and sets the property CreatedBy.
///
/// The account ID of the user that created the rule. If you use PutRule
/// to put a rule on an event bus in another account, the other account is the owner of
/// the rule, and the rule ARN includes the account ID for that account. However, the
/// value for CreatedBy
is the account ID as the account that created the
/// rule in the other account.
///
///
[AWSProperty(Min=1, Max=128)]
public string CreatedBy
{
get { return this._createdBy; }
set { this._createdBy = value; }
}
// Check to see if CreatedBy property is set
internal bool IsSetCreatedBy()
{
return this._createdBy != null;
}
///
/// Gets and sets the property Description.
///
/// The description of the rule.
///
///
[AWSProperty(Max=512)]
public string Description
{
get { return this._description; }
set { this._description = value; }
}
// Check to see if Description property is set
internal bool IsSetDescription()
{
return this._description != null;
}
///
/// Gets and sets the property EventBusName.
///
/// The name of the event bus associated with the rule.
///
///
[AWSProperty(Min=1, Max=256)]
public string EventBusName
{
get { return this._eventBusName; }
set { this._eventBusName = value; }
}
// Check to see if EventBusName property is set
internal bool IsSetEventBusName()
{
return this._eventBusName != null;
}
///
/// Gets and sets the property EventPattern.
///
/// The event pattern. For more information, see Events
/// and Event Patterns in the Amazon EventBridge User Guide.
///
///
public string EventPattern
{
get { return this._eventPattern; }
set { this._eventPattern = value; }
}
// Check to see if EventPattern property is set
internal bool IsSetEventPattern()
{
return this._eventPattern != null;
}
///
/// Gets and sets the property ManagedBy.
///
/// If this is a managed rule, created by an Amazon Web Services service on your behalf,
/// this field displays the principal name of the Amazon Web Services service that created
/// the rule.
///
///
[AWSProperty(Min=1, Max=128)]
public string ManagedBy
{
get { return this._managedBy; }
set { this._managedBy = value; }
}
// Check to see if ManagedBy property is set
internal bool IsSetManagedBy()
{
return this._managedBy != null;
}
///
/// Gets and sets the property Name.
///
/// The name of the rule.
///
///
[AWSProperty(Min=1, Max=64)]
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
///
/// Gets and sets the property RoleArn.
///
/// The Amazon Resource Name (ARN) of the IAM role associated with the rule.
///
///
[AWSProperty(Min=1, Max=1600)]
public string RoleArn
{
get { return this._roleArn; }
set { this._roleArn = value; }
}
// Check to see if RoleArn property is set
internal bool IsSetRoleArn()
{
return this._roleArn != null;
}
///
/// Gets and sets the property ScheduleExpression.
///
/// The scheduling expression. For example, "cron(0 20 * * ? *)", "rate(5 minutes)".
///
///
[AWSProperty(Max=256)]
public string ScheduleExpression
{
get { return this._scheduleExpression; }
set { this._scheduleExpression = value; }
}
// Check to see if ScheduleExpression property is set
internal bool IsSetScheduleExpression()
{
return this._scheduleExpression != null;
}
///
/// Gets and sets the property State.
///
/// Specifies whether the rule is enabled or disabled.
///
///
public RuleState State
{
get { return this._state; }
set { this._state = value; }
}
// Check to see if State property is set
internal bool IsSetState()
{
return this._state != null;
}
}
}