/*
* 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 backup-gateway-2021-01-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.BackupGateway.Model
{
///
/// Container for the parameters to the PutMaintenanceStartTime operation.
/// Set the maintenance start time for a gateway.
///
public partial class PutMaintenanceStartTimeRequest : AmazonBackupGatewayRequest
{
private int? _dayOfMonth;
private int? _dayOfWeek;
private string _gatewayArn;
private int? _hourOfDay;
private int? _minuteOfHour;
///
/// Gets and sets the property DayOfMonth.
///
/// The day of the month start maintenance on a gateway.
///
///
///
/// Valid values range from Sunday
to Saturday
.
///
///
[AWSProperty(Min=1, Max=31)]
public int DayOfMonth
{
get { return this._dayOfMonth.GetValueOrDefault(); }
set { this._dayOfMonth = value; }
}
// Check to see if DayOfMonth property is set
internal bool IsSetDayOfMonth()
{
return this._dayOfMonth.HasValue;
}
///
/// Gets and sets the property DayOfWeek.
///
/// The day of the week to start maintenance on a gateway.
///
///
[AWSProperty(Min=0, Max=6)]
public int DayOfWeek
{
get { return this._dayOfWeek.GetValueOrDefault(); }
set { this._dayOfWeek = value; }
}
// Check to see if DayOfWeek property is set
internal bool IsSetDayOfWeek()
{
return this._dayOfWeek.HasValue;
}
///
/// Gets and sets the property GatewayArn.
///
/// The Amazon Resource Name (ARN) for the gateway, used to specify its maintenance start
/// time.
///
///
[AWSProperty(Required=true, Min=50, Max=500)]
public string GatewayArn
{
get { return this._gatewayArn; }
set { this._gatewayArn = value; }
}
// Check to see if GatewayArn property is set
internal bool IsSetGatewayArn()
{
return this._gatewayArn != null;
}
///
/// Gets and sets the property HourOfDay.
///
/// The hour of the day to start maintenance on a gateway.
///
///
[AWSProperty(Required=true, Min=0, Max=23)]
public int HourOfDay
{
get { return this._hourOfDay.GetValueOrDefault(); }
set { this._hourOfDay = value; }
}
// Check to see if HourOfDay property is set
internal bool IsSetHourOfDay()
{
return this._hourOfDay.HasValue;
}
///
/// Gets and sets the property MinuteOfHour.
///
/// The minute of the hour to start maintenance on a gateway.
///
///
[AWSProperty(Required=true, Min=0, Max=59)]
public int MinuteOfHour
{
get { return this._minuteOfHour.GetValueOrDefault(); }
set { this._minuteOfHour = value; }
}
// Check to see if MinuteOfHour property is set
internal bool IsSetMinuteOfHour()
{
return this._minuteOfHour.HasValue;
}
}
}