/*
* 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 redshift-2012-12-01.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.Redshift.Model
{
///
/// Container for the parameters to the ModifyScheduledAction operation.
/// Modifies a scheduled action.
///
public partial class ModifyScheduledActionRequest : AmazonRedshiftRequest
{
private bool? _enable;
private DateTime? _endTime;
private string _iamRole;
private string _schedule;
private string _scheduledActionDescription;
private string _scheduledActionName;
private DateTime? _startTime;
private ScheduledActionType _targetAction;
///
/// Gets and sets the property Enable.
///
/// A modified enable flag of the scheduled action. If true, the scheduled action is active.
/// If false, the scheduled action is disabled.
///
///
public bool Enable
{
get { return this._enable.GetValueOrDefault(); }
set { this._enable = value; }
}
// Check to see if Enable property is set
internal bool IsSetEnable()
{
return this._enable.HasValue;
}
///
/// Gets and sets the property EndTime.
///
/// A modified end time of the scheduled action. For more information about this parameter,
/// see ScheduledAction.
///
///
public DateTime EndTime
{
get { return this._endTime.GetValueOrDefault(); }
set { this._endTime = value; }
}
// Check to see if EndTime property is set
internal bool IsSetEndTime()
{
return this._endTime.HasValue;
}
///
/// Gets and sets the property IamRole.
///
/// A different IAM role to assume to run the target action. For more information about
/// this parameter, see ScheduledAction.
///
///
[AWSProperty(Max=2147483647)]
public string IamRole
{
get { return this._iamRole; }
set { this._iamRole = value; }
}
// Check to see if IamRole property is set
internal bool IsSetIamRole()
{
return this._iamRole != null;
}
///
/// Gets and sets the property Schedule.
///
/// A modified schedule in either at( )
or cron( )
format. For
/// more information about this parameter, see ScheduledAction.
///
///
[AWSProperty(Max=2147483647)]
public string Schedule
{
get { return this._schedule; }
set { this._schedule = value; }
}
// Check to see if Schedule property is set
internal bool IsSetSchedule()
{
return this._schedule != null;
}
///
/// Gets and sets the property ScheduledActionDescription.
///
/// A modified description of the scheduled action.
///
///
[AWSProperty(Max=2147483647)]
public string ScheduledActionDescription
{
get { return this._scheduledActionDescription; }
set { this._scheduledActionDescription = value; }
}
// Check to see if ScheduledActionDescription property is set
internal bool IsSetScheduledActionDescription()
{
return this._scheduledActionDescription != null;
}
///
/// Gets and sets the property ScheduledActionName.
///
/// The name of the scheduled action to modify.
///
///
[AWSProperty(Required=true, Max=2147483647)]
public string ScheduledActionName
{
get { return this._scheduledActionName; }
set { this._scheduledActionName = value; }
}
// Check to see if ScheduledActionName property is set
internal bool IsSetScheduledActionName()
{
return this._scheduledActionName != null;
}
///
/// Gets and sets the property StartTime.
///
/// A modified start time of the scheduled action. For more information about this parameter,
/// see ScheduledAction.
///
///
public DateTime StartTime
{
get { return this._startTime.GetValueOrDefault(); }
set { this._startTime = value; }
}
// Check to see if StartTime property is set
internal bool IsSetStartTime()
{
return this._startTime.HasValue;
}
///
/// Gets and sets the property TargetAction.
///
/// A modified JSON format of the scheduled action. For more information about this parameter,
/// see ScheduledAction.
///
///
public ScheduledActionType TargetAction
{
get { return this._targetAction; }
set { this._targetAction = value; }
}
// Check to see if TargetAction property is set
internal bool IsSetTargetAction()
{
return this._targetAction != null;
}
}
}