361 lines
14 KiB
C++
361 lines
14 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/ssm/SSM_EXPORTS.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <aws/core/utils/DateTime.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace Utils
|
|
{
|
|
namespace Json
|
|
{
|
|
class JsonValue;
|
|
class JsonView;
|
|
} // namespace Json
|
|
} // namespace Utils
|
|
namespace SSM
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* <p>The service setting data structure.</p> <p> <code>ServiceSetting</code> is an
|
|
* account-level setting for an AWS service. This setting defines how a user
|
|
* interacts with or uses a service or a feature of a service. For example, if an
|
|
* AWS service charges money to the account based on feature or service usage, then
|
|
* the AWS 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.</p> <p>Services map a
|
|
* <code>SettingId</code> object to a setting value. AWS services teams define the
|
|
* default value for a <code>SettingId</code>. You can't create a new
|
|
* <code>SettingId</code>, but you can overwrite the default value if you have the
|
|
* <code>ssm:UpdateServiceSetting</code> permission for the setting. Use the
|
|
* <a>UpdateServiceSetting</a> API action to change the default setting. Or, use
|
|
* the <a>ResetServiceSetting</a> to change the value back to the original value
|
|
* defined by the AWS service team.</p><p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/ServiceSetting">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
class AWS_SSM_API ServiceSetting
|
|
{
|
|
public:
|
|
ServiceSetting();
|
|
ServiceSetting(Aws::Utils::Json::JsonView jsonValue);
|
|
ServiceSetting& operator=(Aws::Utils::Json::JsonView jsonValue);
|
|
Aws::Utils::Json::JsonValue Jsonize() const;
|
|
|
|
|
|
/**
|
|
* <p>The ID of the service setting.</p>
|
|
*/
|
|
inline const Aws::String& GetSettingId() const{ return m_settingId; }
|
|
|
|
/**
|
|
* <p>The ID of the service setting.</p>
|
|
*/
|
|
inline bool SettingIdHasBeenSet() const { return m_settingIdHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The ID of the service setting.</p>
|
|
*/
|
|
inline void SetSettingId(const Aws::String& value) { m_settingIdHasBeenSet = true; m_settingId = value; }
|
|
|
|
/**
|
|
* <p>The ID of the service setting.</p>
|
|
*/
|
|
inline void SetSettingId(Aws::String&& value) { m_settingIdHasBeenSet = true; m_settingId = std::move(value); }
|
|
|
|
/**
|
|
* <p>The ID of the service setting.</p>
|
|
*/
|
|
inline void SetSettingId(const char* value) { m_settingIdHasBeenSet = true; m_settingId.assign(value); }
|
|
|
|
/**
|
|
* <p>The ID of the service setting.</p>
|
|
*/
|
|
inline ServiceSetting& WithSettingId(const Aws::String& value) { SetSettingId(value); return *this;}
|
|
|
|
/**
|
|
* <p>The ID of the service setting.</p>
|
|
*/
|
|
inline ServiceSetting& WithSettingId(Aws::String&& value) { SetSettingId(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The ID of the service setting.</p>
|
|
*/
|
|
inline ServiceSetting& WithSettingId(const char* value) { SetSettingId(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The value of the service setting.</p>
|
|
*/
|
|
inline const Aws::String& GetSettingValue() const{ return m_settingValue; }
|
|
|
|
/**
|
|
* <p>The value of the service setting.</p>
|
|
*/
|
|
inline bool SettingValueHasBeenSet() const { return m_settingValueHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The value of the service setting.</p>
|
|
*/
|
|
inline void SetSettingValue(const Aws::String& value) { m_settingValueHasBeenSet = true; m_settingValue = value; }
|
|
|
|
/**
|
|
* <p>The value of the service setting.</p>
|
|
*/
|
|
inline void SetSettingValue(Aws::String&& value) { m_settingValueHasBeenSet = true; m_settingValue = std::move(value); }
|
|
|
|
/**
|
|
* <p>The value of the service setting.</p>
|
|
*/
|
|
inline void SetSettingValue(const char* value) { m_settingValueHasBeenSet = true; m_settingValue.assign(value); }
|
|
|
|
/**
|
|
* <p>The value of the service setting.</p>
|
|
*/
|
|
inline ServiceSetting& WithSettingValue(const Aws::String& value) { SetSettingValue(value); return *this;}
|
|
|
|
/**
|
|
* <p>The value of the service setting.</p>
|
|
*/
|
|
inline ServiceSetting& WithSettingValue(Aws::String&& value) { SetSettingValue(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The value of the service setting.</p>
|
|
*/
|
|
inline ServiceSetting& WithSettingValue(const char* value) { SetSettingValue(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The last time the service setting was modified.</p>
|
|
*/
|
|
inline const Aws::Utils::DateTime& GetLastModifiedDate() const{ return m_lastModifiedDate; }
|
|
|
|
/**
|
|
* <p>The last time the service setting was modified.</p>
|
|
*/
|
|
inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The last time the service setting was modified.</p>
|
|
*/
|
|
inline void SetLastModifiedDate(const Aws::Utils::DateTime& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = value; }
|
|
|
|
/**
|
|
* <p>The last time the service setting was modified.</p>
|
|
*/
|
|
inline void SetLastModifiedDate(Aws::Utils::DateTime&& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = std::move(value); }
|
|
|
|
/**
|
|
* <p>The last time the service setting was modified.</p>
|
|
*/
|
|
inline ServiceSetting& WithLastModifiedDate(const Aws::Utils::DateTime& value) { SetLastModifiedDate(value); return *this;}
|
|
|
|
/**
|
|
* <p>The last time the service setting was modified.</p>
|
|
*/
|
|
inline ServiceSetting& WithLastModifiedDate(Aws::Utils::DateTime&& value) { SetLastModifiedDate(std::move(value)); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The ARN of the last modified user. This field is populated only if the
|
|
* setting value was overwritten.</p>
|
|
*/
|
|
inline const Aws::String& GetLastModifiedUser() const{ return m_lastModifiedUser; }
|
|
|
|
/**
|
|
* <p>The ARN of the last modified user. This field is populated only if the
|
|
* setting value was overwritten.</p>
|
|
*/
|
|
inline bool LastModifiedUserHasBeenSet() const { return m_lastModifiedUserHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The ARN of the last modified user. This field is populated only if the
|
|
* setting value was overwritten.</p>
|
|
*/
|
|
inline void SetLastModifiedUser(const Aws::String& value) { m_lastModifiedUserHasBeenSet = true; m_lastModifiedUser = value; }
|
|
|
|
/**
|
|
* <p>The ARN of the last modified user. This field is populated only if the
|
|
* setting value was overwritten.</p>
|
|
*/
|
|
inline void SetLastModifiedUser(Aws::String&& value) { m_lastModifiedUserHasBeenSet = true; m_lastModifiedUser = std::move(value); }
|
|
|
|
/**
|
|
* <p>The ARN of the last modified user. This field is populated only if the
|
|
* setting value was overwritten.</p>
|
|
*/
|
|
inline void SetLastModifiedUser(const char* value) { m_lastModifiedUserHasBeenSet = true; m_lastModifiedUser.assign(value); }
|
|
|
|
/**
|
|
* <p>The ARN of the last modified user. This field is populated only if the
|
|
* setting value was overwritten.</p>
|
|
*/
|
|
inline ServiceSetting& WithLastModifiedUser(const Aws::String& value) { SetLastModifiedUser(value); return *this;}
|
|
|
|
/**
|
|
* <p>The ARN of the last modified user. This field is populated only if the
|
|
* setting value was overwritten.</p>
|
|
*/
|
|
inline ServiceSetting& WithLastModifiedUser(Aws::String&& value) { SetLastModifiedUser(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The ARN of the last modified user. This field is populated only if the
|
|
* setting value was overwritten.</p>
|
|
*/
|
|
inline ServiceSetting& WithLastModifiedUser(const char* value) { SetLastModifiedUser(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The ARN of the service setting.</p>
|
|
*/
|
|
inline const Aws::String& GetARN() const{ return m_aRN; }
|
|
|
|
/**
|
|
* <p>The ARN of the service setting.</p>
|
|
*/
|
|
inline bool ARNHasBeenSet() const { return m_aRNHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The ARN of the service setting.</p>
|
|
*/
|
|
inline void SetARN(const Aws::String& value) { m_aRNHasBeenSet = true; m_aRN = value; }
|
|
|
|
/**
|
|
* <p>The ARN of the service setting.</p>
|
|
*/
|
|
inline void SetARN(Aws::String&& value) { m_aRNHasBeenSet = true; m_aRN = std::move(value); }
|
|
|
|
/**
|
|
* <p>The ARN of the service setting.</p>
|
|
*/
|
|
inline void SetARN(const char* value) { m_aRNHasBeenSet = true; m_aRN.assign(value); }
|
|
|
|
/**
|
|
* <p>The ARN of the service setting.</p>
|
|
*/
|
|
inline ServiceSetting& WithARN(const Aws::String& value) { SetARN(value); return *this;}
|
|
|
|
/**
|
|
* <p>The ARN of the service setting.</p>
|
|
*/
|
|
inline ServiceSetting& WithARN(Aws::String&& value) { SetARN(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The ARN of the service setting.</p>
|
|
*/
|
|
inline ServiceSetting& WithARN(const char* value) { SetARN(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The status of the service setting. The value can be Default, Customized or
|
|
* PendingUpdate.</p> <ul> <li> <p>Default: The current setting uses a default
|
|
* value provisioned by the AWS service team.</p> </li> <li> <p>Customized: The
|
|
* current setting use a custom value specified by the customer.</p> </li> <li>
|
|
* <p>PendingUpdate: The current setting uses a default or custom value, but a
|
|
* setting change request is pending approval.</p> </li> </ul>
|
|
*/
|
|
inline const Aws::String& GetStatus() const{ return m_status; }
|
|
|
|
/**
|
|
* <p>The status of the service setting. The value can be Default, Customized or
|
|
* PendingUpdate.</p> <ul> <li> <p>Default: The current setting uses a default
|
|
* value provisioned by the AWS service team.</p> </li> <li> <p>Customized: The
|
|
* current setting use a custom value specified by the customer.</p> </li> <li>
|
|
* <p>PendingUpdate: The current setting uses a default or custom value, but a
|
|
* setting change request is pending approval.</p> </li> </ul>
|
|
*/
|
|
inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The status of the service setting. The value can be Default, Customized or
|
|
* PendingUpdate.</p> <ul> <li> <p>Default: The current setting uses a default
|
|
* value provisioned by the AWS service team.</p> </li> <li> <p>Customized: The
|
|
* current setting use a custom value specified by the customer.</p> </li> <li>
|
|
* <p>PendingUpdate: The current setting uses a default or custom value, but a
|
|
* setting change request is pending approval.</p> </li> </ul>
|
|
*/
|
|
inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
|
|
|
|
/**
|
|
* <p>The status of the service setting. The value can be Default, Customized or
|
|
* PendingUpdate.</p> <ul> <li> <p>Default: The current setting uses a default
|
|
* value provisioned by the AWS service team.</p> </li> <li> <p>Customized: The
|
|
* current setting use a custom value specified by the customer.</p> </li> <li>
|
|
* <p>PendingUpdate: The current setting uses a default or custom value, but a
|
|
* setting change request is pending approval.</p> </li> </ul>
|
|
*/
|
|
inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
|
|
|
|
/**
|
|
* <p>The status of the service setting. The value can be Default, Customized or
|
|
* PendingUpdate.</p> <ul> <li> <p>Default: The current setting uses a default
|
|
* value provisioned by the AWS service team.</p> </li> <li> <p>Customized: The
|
|
* current setting use a custom value specified by the customer.</p> </li> <li>
|
|
* <p>PendingUpdate: The current setting uses a default or custom value, but a
|
|
* setting change request is pending approval.</p> </li> </ul>
|
|
*/
|
|
inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
|
|
|
|
/**
|
|
* <p>The status of the service setting. The value can be Default, Customized or
|
|
* PendingUpdate.</p> <ul> <li> <p>Default: The current setting uses a default
|
|
* value provisioned by the AWS service team.</p> </li> <li> <p>Customized: The
|
|
* current setting use a custom value specified by the customer.</p> </li> <li>
|
|
* <p>PendingUpdate: The current setting uses a default or custom value, but a
|
|
* setting change request is pending approval.</p> </li> </ul>
|
|
*/
|
|
inline ServiceSetting& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
|
|
|
|
/**
|
|
* <p>The status of the service setting. The value can be Default, Customized or
|
|
* PendingUpdate.</p> <ul> <li> <p>Default: The current setting uses a default
|
|
* value provisioned by the AWS service team.</p> </li> <li> <p>Customized: The
|
|
* current setting use a custom value specified by the customer.</p> </li> <li>
|
|
* <p>PendingUpdate: The current setting uses a default or custom value, but a
|
|
* setting change request is pending approval.</p> </li> </ul>
|
|
*/
|
|
inline ServiceSetting& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The status of the service setting. The value can be Default, Customized or
|
|
* PendingUpdate.</p> <ul> <li> <p>Default: The current setting uses a default
|
|
* value provisioned by the AWS service team.</p> </li> <li> <p>Customized: The
|
|
* current setting use a custom value specified by the customer.</p> </li> <li>
|
|
* <p>PendingUpdate: The current setting uses a default or custom value, but a
|
|
* setting change request is pending approval.</p> </li> </ul>
|
|
*/
|
|
inline ServiceSetting& WithStatus(const char* value) { SetStatus(value); return *this;}
|
|
|
|
private:
|
|
|
|
Aws::String m_settingId;
|
|
bool m_settingIdHasBeenSet;
|
|
|
|
Aws::String m_settingValue;
|
|
bool m_settingValueHasBeenSet;
|
|
|
|
Aws::Utils::DateTime m_lastModifiedDate;
|
|
bool m_lastModifiedDateHasBeenSet;
|
|
|
|
Aws::String m_lastModifiedUser;
|
|
bool m_lastModifiedUserHasBeenSet;
|
|
|
|
Aws::String m_aRN;
|
|
bool m_aRNHasBeenSet;
|
|
|
|
Aws::String m_status;
|
|
bool m_statusHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace SSM
|
|
} // namespace Aws
|