/*
* 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 ssm-2014-11-06.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.SimpleSystemsManagement.Model
{
///
/// The service setting data structure.
///
///
///
/// ServiceSetting
is an account-level setting for an Amazon Web Services
/// service. This setting defines how a user interacts with or uses a service or a feature
/// of a service. For example, if an Amazon Web Services service charges money to the
/// account based on feature or service usage, then the Amazon Web Services service team
/// might create a default setting of "false". This means the user can't use this feature
/// unless they change the setting to "true" and intentionally opt in for a paid feature.
///
///
///
/// Services map a SettingId
object to a setting value. Amazon Web Services
/// services teams define the default value for a SettingId
. You can't create
/// a new SettingId
, but you can overwrite the default value if you have
/// the ssm:UpdateServiceSetting
permission for the setting. Use the UpdateServiceSetting
/// API operation to change the default setting. Or, use the ResetServiceSetting
/// to change the value back to the original value defined by the Amazon Web Services
/// service team.
///
///
public partial class ServiceSetting
{
private string _arn;
private DateTime? _lastModifiedDate;
private string _lastModifiedUser;
private string _settingId;
private string _settingValue;
private string _status;
///
/// Gets and sets the property ARN.
///
/// The ARN of the service setting.
///
///
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 LastModifiedDate.
///
/// The last time the service setting was modified.
///
///
public DateTime LastModifiedDate
{
get { return this._lastModifiedDate.GetValueOrDefault(); }
set { this._lastModifiedDate = value; }
}
// Check to see if LastModifiedDate property is set
internal bool IsSetLastModifiedDate()
{
return this._lastModifiedDate.HasValue;
}
///
/// Gets and sets the property LastModifiedUser.
///
/// The ARN of the last modified user. This field is populated only if the setting value
/// was overwritten.
///
///
public string LastModifiedUser
{
get { return this._lastModifiedUser; }
set { this._lastModifiedUser = value; }
}
// Check to see if LastModifiedUser property is set
internal bool IsSetLastModifiedUser()
{
return this._lastModifiedUser != null;
}
///
/// Gets and sets the property SettingId.
///
/// The ID of the service setting.
///
///
[AWSProperty(Min=1, Max=1000)]
public string SettingId
{
get { return this._settingId; }
set { this._settingId = value; }
}
// Check to see if SettingId property is set
internal bool IsSetSettingId()
{
return this._settingId != null;
}
///
/// Gets and sets the property SettingValue.
///
/// The value of the service setting.
///
///
[AWSProperty(Min=1, Max=4096)]
public string SettingValue
{
get { return this._settingValue; }
set { this._settingValue = value; }
}
// Check to see if SettingValue property is set
internal bool IsSetSettingValue()
{
return this._settingValue != null;
}
///
/// Gets and sets the property Status.
///
/// The status of the service setting. The value can be Default, Customized or PendingUpdate.
///
/// -
///
/// Default: The current setting uses a default value provisioned by the Amazon Web Services
/// service team.
///
///
-
///
/// Customized: The current setting use a custom value specified by the customer.
///
///
-
///
/// PendingUpdate: The current setting uses a default or custom value, but a setting change
/// request is pending approval.
///
///
///
public string Status
{
get { return this._status; }
set { this._status = value; }
}
// Check to see if Status property is set
internal bool IsSetStatus()
{
return this._status != null;
}
}
}