/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace IAM { namespace Model { /** */ class AWS_IAM_API SetSecurityTokenServicePreferencesRequest : public IAMRequest { public: SetSecurityTokenServicePreferencesRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "SetSecurityTokenServicePreferences"; } Aws::String SerializePayload() const override; protected: void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

The version of the global endpoint token. Version 1 tokens are valid only in * AWS Regions that are available by default. These tokens do not work in manually * enabled Regions, such as Asia Pacific (Hong Kong). Version 2 tokens are valid in * all Regions. However, version 2 tokens are longer and might affect systems where * you temporarily store tokens.

For information, see Activating * and Deactivating STS in an AWS Region in the IAM User Guide.

*/ inline const GlobalEndpointTokenVersion& GetGlobalEndpointTokenVersion() const{ return m_globalEndpointTokenVersion; } /** *

The version of the global endpoint token. Version 1 tokens are valid only in * AWS Regions that are available by default. These tokens do not work in manually * enabled Regions, such as Asia Pacific (Hong Kong). Version 2 tokens are valid in * all Regions. However, version 2 tokens are longer and might affect systems where * you temporarily store tokens.

For information, see Activating * and Deactivating STS in an AWS Region in the IAM User Guide.

*/ inline bool GlobalEndpointTokenVersionHasBeenSet() const { return m_globalEndpointTokenVersionHasBeenSet; } /** *

The version of the global endpoint token. Version 1 tokens are valid only in * AWS Regions that are available by default. These tokens do not work in manually * enabled Regions, such as Asia Pacific (Hong Kong). Version 2 tokens are valid in * all Regions. However, version 2 tokens are longer and might affect systems where * you temporarily store tokens.

For information, see Activating * and Deactivating STS in an AWS Region in the IAM User Guide.

*/ inline void SetGlobalEndpointTokenVersion(const GlobalEndpointTokenVersion& value) { m_globalEndpointTokenVersionHasBeenSet = true; m_globalEndpointTokenVersion = value; } /** *

The version of the global endpoint token. Version 1 tokens are valid only in * AWS Regions that are available by default. These tokens do not work in manually * enabled Regions, such as Asia Pacific (Hong Kong). Version 2 tokens are valid in * all Regions. However, version 2 tokens are longer and might affect systems where * you temporarily store tokens.

For information, see Activating * and Deactivating STS in an AWS Region in the IAM User Guide.

*/ inline void SetGlobalEndpointTokenVersion(GlobalEndpointTokenVersion&& value) { m_globalEndpointTokenVersionHasBeenSet = true; m_globalEndpointTokenVersion = std::move(value); } /** *

The version of the global endpoint token. Version 1 tokens are valid only in * AWS Regions that are available by default. These tokens do not work in manually * enabled Regions, such as Asia Pacific (Hong Kong). Version 2 tokens are valid in * all Regions. However, version 2 tokens are longer and might affect systems where * you temporarily store tokens.

For information, see Activating * and Deactivating STS in an AWS Region in the IAM User Guide.

*/ inline SetSecurityTokenServicePreferencesRequest& WithGlobalEndpointTokenVersion(const GlobalEndpointTokenVersion& value) { SetGlobalEndpointTokenVersion(value); return *this;} /** *

The version of the global endpoint token. Version 1 tokens are valid only in * AWS Regions that are available by default. These tokens do not work in manually * enabled Regions, such as Asia Pacific (Hong Kong). Version 2 tokens are valid in * all Regions. However, version 2 tokens are longer and might affect systems where * you temporarily store tokens.

For information, see Activating * and Deactivating STS in an AWS Region in the IAM User Guide.

*/ inline SetSecurityTokenServicePreferencesRequest& WithGlobalEndpointTokenVersion(GlobalEndpointTokenVersion&& value) { SetGlobalEndpointTokenVersion(std::move(value)); return *this;} private: GlobalEndpointTokenVersion m_globalEndpointTokenVersion; bool m_globalEndpointTokenVersionHasBeenSet; }; } // namespace Model } // namespace IAM } // namespace Aws