/** * 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 SSOOIDC { namespace Model { /** */ class StartDeviceAuthorizationRequest : public SSOOIDCRequest { public: AWS_SSOOIDC_API StartDeviceAuthorizationRequest(); // 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 "StartDeviceAuthorization"; } AWS_SSOOIDC_API Aws::String SerializePayload() const override; /** *

The unique identifier string for the client that is registered with IAM * Identity Center. This value should come from the persisted result of the * RegisterClient API operation.

*/ inline const Aws::String& GetClientId() const{ return m_clientId; } /** *

The unique identifier string for the client that is registered with IAM * Identity Center. This value should come from the persisted result of the * RegisterClient API operation.

*/ inline bool ClientIdHasBeenSet() const { return m_clientIdHasBeenSet; } /** *

The unique identifier string for the client that is registered with IAM * Identity Center. This value should come from the persisted result of the * RegisterClient API operation.

*/ inline void SetClientId(const Aws::String& value) { m_clientIdHasBeenSet = true; m_clientId = value; } /** *

The unique identifier string for the client that is registered with IAM * Identity Center. This value should come from the persisted result of the * RegisterClient API operation.

*/ inline void SetClientId(Aws::String&& value) { m_clientIdHasBeenSet = true; m_clientId = std::move(value); } /** *

The unique identifier string for the client that is registered with IAM * Identity Center. This value should come from the persisted result of the * RegisterClient API operation.

*/ inline void SetClientId(const char* value) { m_clientIdHasBeenSet = true; m_clientId.assign(value); } /** *

The unique identifier string for the client that is registered with IAM * Identity Center. This value should come from the persisted result of the * RegisterClient API operation.

*/ inline StartDeviceAuthorizationRequest& WithClientId(const Aws::String& value) { SetClientId(value); return *this;} /** *

The unique identifier string for the client that is registered with IAM * Identity Center. This value should come from the persisted result of the * RegisterClient API operation.

*/ inline StartDeviceAuthorizationRequest& WithClientId(Aws::String&& value) { SetClientId(std::move(value)); return *this;} /** *

The unique identifier string for the client that is registered with IAM * Identity Center. This value should come from the persisted result of the * RegisterClient API operation.

*/ inline StartDeviceAuthorizationRequest& WithClientId(const char* value) { SetClientId(value); return *this;} /** *

A secret string that is generated for the client. This value should come from * the persisted result of the RegisterClient API operation.

*/ inline const Aws::String& GetClientSecret() const{ return m_clientSecret; } /** *

A secret string that is generated for the client. This value should come from * the persisted result of the RegisterClient API operation.

*/ inline bool ClientSecretHasBeenSet() const { return m_clientSecretHasBeenSet; } /** *

A secret string that is generated for the client. This value should come from * the persisted result of the RegisterClient API operation.

*/ inline void SetClientSecret(const Aws::String& value) { m_clientSecretHasBeenSet = true; m_clientSecret = value; } /** *

A secret string that is generated for the client. This value should come from * the persisted result of the RegisterClient API operation.

*/ inline void SetClientSecret(Aws::String&& value) { m_clientSecretHasBeenSet = true; m_clientSecret = std::move(value); } /** *

A secret string that is generated for the client. This value should come from * the persisted result of the RegisterClient API operation.

*/ inline void SetClientSecret(const char* value) { m_clientSecretHasBeenSet = true; m_clientSecret.assign(value); } /** *

A secret string that is generated for the client. This value should come from * the persisted result of the RegisterClient API operation.

*/ inline StartDeviceAuthorizationRequest& WithClientSecret(const Aws::String& value) { SetClientSecret(value); return *this;} /** *

A secret string that is generated for the client. This value should come from * the persisted result of the RegisterClient API operation.

*/ inline StartDeviceAuthorizationRequest& WithClientSecret(Aws::String&& value) { SetClientSecret(std::move(value)); return *this;} /** *

A secret string that is generated for the client. This value should come from * the persisted result of the RegisterClient API operation.

*/ inline StartDeviceAuthorizationRequest& WithClientSecret(const char* value) { SetClientSecret(value); return *this;} /** *

The URL for the AWS access portal. For more information, see Using * the AWS access portal in the IAM Identity Center User Guide.

*/ inline const Aws::String& GetStartUrl() const{ return m_startUrl; } /** *

The URL for the AWS access portal. For more information, see Using * the AWS access portal in the IAM Identity Center User Guide.

*/ inline bool StartUrlHasBeenSet() const { return m_startUrlHasBeenSet; } /** *

The URL for the AWS access portal. For more information, see Using * the AWS access portal in the IAM Identity Center User Guide.

*/ inline void SetStartUrl(const Aws::String& value) { m_startUrlHasBeenSet = true; m_startUrl = value; } /** *

The URL for the AWS access portal. For more information, see Using * the AWS access portal in the IAM Identity Center User Guide.

*/ inline void SetStartUrl(Aws::String&& value) { m_startUrlHasBeenSet = true; m_startUrl = std::move(value); } /** *

The URL for the AWS access portal. For more information, see Using * the AWS access portal in the IAM Identity Center User Guide.

*/ inline void SetStartUrl(const char* value) { m_startUrlHasBeenSet = true; m_startUrl.assign(value); } /** *

The URL for the AWS access portal. For more information, see Using * the AWS access portal in the IAM Identity Center User Guide.

*/ inline StartDeviceAuthorizationRequest& WithStartUrl(const Aws::String& value) { SetStartUrl(value); return *this;} /** *

The URL for the AWS access portal. For more information, see Using * the AWS access portal in the IAM Identity Center User Guide.

*/ inline StartDeviceAuthorizationRequest& WithStartUrl(Aws::String&& value) { SetStartUrl(std::move(value)); return *this;} /** *

The URL for the AWS access portal. For more information, see Using * the AWS access portal in the IAM Identity Center User Guide.

*/ inline StartDeviceAuthorizationRequest& WithStartUrl(const char* value) { SetStartUrl(value); return *this;} private: Aws::String m_clientId; bool m_clientIdHasBeenSet = false; Aws::String m_clientSecret; bool m_clientSecretHasBeenSet = false; Aws::String m_startUrl; bool m_startUrlHasBeenSet = false; }; } // namespace Model } // namespace SSOOIDC } // namespace Aws