/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace LicenseManager { namespace Model { /** */ class GetAccessTokenRequest : public LicenseManagerRequest { public: AWS_LICENSEMANAGER_API GetAccessTokenRequest(); // 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 "GetAccessToken"; } AWS_LICENSEMANAGER_API Aws::String SerializePayload() const override; AWS_LICENSEMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

Refresh token, encoded as a JWT token.

*/ inline const Aws::String& GetToken() const{ return m_token; } /** *

Refresh token, encoded as a JWT token.

*/ inline bool TokenHasBeenSet() const { return m_tokenHasBeenSet; } /** *

Refresh token, encoded as a JWT token.

*/ inline void SetToken(const Aws::String& value) { m_tokenHasBeenSet = true; m_token = value; } /** *

Refresh token, encoded as a JWT token.

*/ inline void SetToken(Aws::String&& value) { m_tokenHasBeenSet = true; m_token = std::move(value); } /** *

Refresh token, encoded as a JWT token.

*/ inline void SetToken(const char* value) { m_tokenHasBeenSet = true; m_token.assign(value); } /** *

Refresh token, encoded as a JWT token.

*/ inline GetAccessTokenRequest& WithToken(const Aws::String& value) { SetToken(value); return *this;} /** *

Refresh token, encoded as a JWT token.

*/ inline GetAccessTokenRequest& WithToken(Aws::String&& value) { SetToken(std::move(value)); return *this;} /** *

Refresh token, encoded as a JWT token.

*/ inline GetAccessTokenRequest& WithToken(const char* value) { SetToken(value); return *this;} /** *

Token properties to validate against those present in the JWT token.

*/ inline const Aws::Vector& GetTokenProperties() const{ return m_tokenProperties; } /** *

Token properties to validate against those present in the JWT token.

*/ inline bool TokenPropertiesHasBeenSet() const { return m_tokenPropertiesHasBeenSet; } /** *

Token properties to validate against those present in the JWT token.

*/ inline void SetTokenProperties(const Aws::Vector& value) { m_tokenPropertiesHasBeenSet = true; m_tokenProperties = value; } /** *

Token properties to validate against those present in the JWT token.

*/ inline void SetTokenProperties(Aws::Vector&& value) { m_tokenPropertiesHasBeenSet = true; m_tokenProperties = std::move(value); } /** *

Token properties to validate against those present in the JWT token.

*/ inline GetAccessTokenRequest& WithTokenProperties(const Aws::Vector& value) { SetTokenProperties(value); return *this;} /** *

Token properties to validate against those present in the JWT token.

*/ inline GetAccessTokenRequest& WithTokenProperties(Aws::Vector&& value) { SetTokenProperties(std::move(value)); return *this;} /** *

Token properties to validate against those present in the JWT token.

*/ inline GetAccessTokenRequest& AddTokenProperties(const Aws::String& value) { m_tokenPropertiesHasBeenSet = true; m_tokenProperties.push_back(value); return *this; } /** *

Token properties to validate against those present in the JWT token.

*/ inline GetAccessTokenRequest& AddTokenProperties(Aws::String&& value) { m_tokenPropertiesHasBeenSet = true; m_tokenProperties.push_back(std::move(value)); return *this; } /** *

Token properties to validate against those present in the JWT token.

*/ inline GetAccessTokenRequest& AddTokenProperties(const char* value) { m_tokenPropertiesHasBeenSet = true; m_tokenProperties.push_back(value); return *this; } private: Aws::String m_token; bool m_tokenHasBeenSet = false; Aws::Vector m_tokenProperties; bool m_tokenPropertiesHasBeenSet = false; }; } // namespace Model } // namespace LicenseManager } // namespace Aws