/** * 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 CodeDeploy { namespace Model { /** *

Represents the input of a DeleteGitHubAccount * operation.

See Also:

AWS * API Reference

*/ class DeleteGitHubAccountTokenRequest : public CodeDeployRequest { public: AWS_CODEDEPLOY_API DeleteGitHubAccountTokenRequest(); // 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 "DeleteGitHubAccountToken"; } AWS_CODEDEPLOY_API Aws::String SerializePayload() const override; AWS_CODEDEPLOY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the GitHub account connection to delete.

*/ inline const Aws::String& GetTokenName() const{ return m_tokenName; } /** *

The name of the GitHub account connection to delete.

*/ inline bool TokenNameHasBeenSet() const { return m_tokenNameHasBeenSet; } /** *

The name of the GitHub account connection to delete.

*/ inline void SetTokenName(const Aws::String& value) { m_tokenNameHasBeenSet = true; m_tokenName = value; } /** *

The name of the GitHub account connection to delete.

*/ inline void SetTokenName(Aws::String&& value) { m_tokenNameHasBeenSet = true; m_tokenName = std::move(value); } /** *

The name of the GitHub account connection to delete.

*/ inline void SetTokenName(const char* value) { m_tokenNameHasBeenSet = true; m_tokenName.assign(value); } /** *

The name of the GitHub account connection to delete.

*/ inline DeleteGitHubAccountTokenRequest& WithTokenName(const Aws::String& value) { SetTokenName(value); return *this;} /** *

The name of the GitHub account connection to delete.

*/ inline DeleteGitHubAccountTokenRequest& WithTokenName(Aws::String&& value) { SetTokenName(std::move(value)); return *this;} /** *

The name of the GitHub account connection to delete.

*/ inline DeleteGitHubAccountTokenRequest& WithTokenName(const char* value) { SetTokenName(value); return *this;} private: Aws::String m_tokenName; bool m_tokenNameHasBeenSet = false; }; } // namespace Model } // namespace CodeDeploy } // namespace Aws