/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace EKS { namespace Model { /** */ class AssociateIdentityProviderConfigRequest : public EKSRequest { public: AWS_EKS_API AssociateIdentityProviderConfigRequest(); // 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 "AssociateIdentityProviderConfig"; } AWS_EKS_API Aws::String SerializePayload() const override; /** *

The name of the cluster to associate the configuration to.

*/ inline const Aws::String& GetClusterName() const{ return m_clusterName; } /** *

The name of the cluster to associate the configuration to.

*/ inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; } /** *

The name of the cluster to associate the configuration to.

*/ inline void SetClusterName(const Aws::String& value) { m_clusterNameHasBeenSet = true; m_clusterName = value; } /** *

The name of the cluster to associate the configuration to.

*/ inline void SetClusterName(Aws::String&& value) { m_clusterNameHasBeenSet = true; m_clusterName = std::move(value); } /** *

The name of the cluster to associate the configuration to.

*/ inline void SetClusterName(const char* value) { m_clusterNameHasBeenSet = true; m_clusterName.assign(value); } /** *

The name of the cluster to associate the configuration to.

*/ inline AssociateIdentityProviderConfigRequest& WithClusterName(const Aws::String& value) { SetClusterName(value); return *this;} /** *

The name of the cluster to associate the configuration to.

*/ inline AssociateIdentityProviderConfigRequest& WithClusterName(Aws::String&& value) { SetClusterName(std::move(value)); return *this;} /** *

The name of the cluster to associate the configuration to.

*/ inline AssociateIdentityProviderConfigRequest& WithClusterName(const char* value) { SetClusterName(value); return *this;} /** *

An object representing an OpenID Connect (OIDC) identity provider * configuration.

*/ inline const OidcIdentityProviderConfigRequest& GetOidc() const{ return m_oidc; } /** *

An object representing an OpenID Connect (OIDC) identity provider * configuration.

*/ inline bool OidcHasBeenSet() const { return m_oidcHasBeenSet; } /** *

An object representing an OpenID Connect (OIDC) identity provider * configuration.

*/ inline void SetOidc(const OidcIdentityProviderConfigRequest& value) { m_oidcHasBeenSet = true; m_oidc = value; } /** *

An object representing an OpenID Connect (OIDC) identity provider * configuration.

*/ inline void SetOidc(OidcIdentityProviderConfigRequest&& value) { m_oidcHasBeenSet = true; m_oidc = std::move(value); } /** *

An object representing an OpenID Connect (OIDC) identity provider * configuration.

*/ inline AssociateIdentityProviderConfigRequest& WithOidc(const OidcIdentityProviderConfigRequest& value) { SetOidc(value); return *this;} /** *

An object representing an OpenID Connect (OIDC) identity provider * configuration.

*/ inline AssociateIdentityProviderConfigRequest& WithOidc(OidcIdentityProviderConfigRequest&& value) { SetOidc(std::move(value)); return *this;} /** *

The metadata to apply to the configuration to assist with categorization and * organization. Each tag consists of a key and an optional value. You define * both.

*/ inline const Aws::Map& GetTags() const{ return m_tags; } /** *

The metadata to apply to the configuration to assist with categorization and * organization. Each tag consists of a key and an optional value. You define * both.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

The metadata to apply to the configuration to assist with categorization and * organization. Each tag consists of a key and an optional value. You define * both.

*/ inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

The metadata to apply to the configuration to assist with categorization and * organization. Each tag consists of a key and an optional value. You define * both.

*/ inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

The metadata to apply to the configuration to assist with categorization and * organization. Each tag consists of a key and an optional value. You define * both.

*/ inline AssociateIdentityProviderConfigRequest& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

The metadata to apply to the configuration to assist with categorization and * organization. Each tag consists of a key and an optional value. You define * both.

*/ inline AssociateIdentityProviderConfigRequest& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** *

The metadata to apply to the configuration to assist with categorization and * organization. Each tag consists of a key and an optional value. You define * both.

*/ inline AssociateIdentityProviderConfigRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

The metadata to apply to the configuration to assist with categorization and * organization. Each tag consists of a key and an optional value. You define * both.

*/ inline AssociateIdentityProviderConfigRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

The metadata to apply to the configuration to assist with categorization and * organization. Each tag consists of a key and an optional value. You define * both.

*/ inline AssociateIdentityProviderConfigRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

The metadata to apply to the configuration to assist with categorization and * organization. Each tag consists of a key and an optional value. You define * both.

*/ inline AssociateIdentityProviderConfigRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

The metadata to apply to the configuration to assist with categorization and * organization. Each tag consists of a key and an optional value. You define * both.

*/ inline AssociateIdentityProviderConfigRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

The metadata to apply to the configuration to assist with categorization and * organization. Each tag consists of a key and an optional value. You define * both.

*/ inline AssociateIdentityProviderConfigRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

The metadata to apply to the configuration to assist with categorization and * organization. Each tag consists of a key and an optional value. You define * both.

*/ inline AssociateIdentityProviderConfigRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request.

*/ inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; } /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request.

*/ inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; } /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request.

*/ inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; } /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request.

*/ inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); } /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request.

*/ inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); } /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request.

*/ inline AssociateIdentityProviderConfigRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;} /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request.

*/ inline AssociateIdentityProviderConfigRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;} /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request.

*/ inline AssociateIdentityProviderConfigRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;} private: Aws::String m_clusterName; bool m_clusterNameHasBeenSet = false; OidcIdentityProviderConfigRequest m_oidc; bool m_oidcHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; Aws::String m_clientRequestToken; bool m_clientRequestTokenHasBeenSet = false; }; } // namespace Model } // namespace EKS } // namespace Aws