/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace CloudWatchEvents { namespace Model { /** *

Contains the OAuth request parameters to use for the * connection.

See Also:

AWS * API Reference

*/ class UpdateConnectionOAuthRequestParameters { public: AWS_CLOUDWATCHEVENTS_API UpdateConnectionOAuthRequestParameters(); AWS_CLOUDWATCHEVENTS_API UpdateConnectionOAuthRequestParameters(Aws::Utils::Json::JsonView jsonValue); AWS_CLOUDWATCHEVENTS_API UpdateConnectionOAuthRequestParameters& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_CLOUDWATCHEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

A UpdateConnectionOAuthClientRequestParameters object that * contains the client parameters to use for the connection when OAuth is specified * as the authorization type.

*/ inline const UpdateConnectionOAuthClientRequestParameters& GetClientParameters() const{ return m_clientParameters; } /** *

A UpdateConnectionOAuthClientRequestParameters object that * contains the client parameters to use for the connection when OAuth is specified * as the authorization type.

*/ inline bool ClientParametersHasBeenSet() const { return m_clientParametersHasBeenSet; } /** *

A UpdateConnectionOAuthClientRequestParameters object that * contains the client parameters to use for the connection when OAuth is specified * as the authorization type.

*/ inline void SetClientParameters(const UpdateConnectionOAuthClientRequestParameters& value) { m_clientParametersHasBeenSet = true; m_clientParameters = value; } /** *

A UpdateConnectionOAuthClientRequestParameters object that * contains the client parameters to use for the connection when OAuth is specified * as the authorization type.

*/ inline void SetClientParameters(UpdateConnectionOAuthClientRequestParameters&& value) { m_clientParametersHasBeenSet = true; m_clientParameters = std::move(value); } /** *

A UpdateConnectionOAuthClientRequestParameters object that * contains the client parameters to use for the connection when OAuth is specified * as the authorization type.

*/ inline UpdateConnectionOAuthRequestParameters& WithClientParameters(const UpdateConnectionOAuthClientRequestParameters& value) { SetClientParameters(value); return *this;} /** *

A UpdateConnectionOAuthClientRequestParameters object that * contains the client parameters to use for the connection when OAuth is specified * as the authorization type.

*/ inline UpdateConnectionOAuthRequestParameters& WithClientParameters(UpdateConnectionOAuthClientRequestParameters&& value) { SetClientParameters(std::move(value)); return *this;} /** *

The URL to the authorization endpoint when OAuth is specified as the * authorization type.

*/ inline const Aws::String& GetAuthorizationEndpoint() const{ return m_authorizationEndpoint; } /** *

The URL to the authorization endpoint when OAuth is specified as the * authorization type.

*/ inline bool AuthorizationEndpointHasBeenSet() const { return m_authorizationEndpointHasBeenSet; } /** *

The URL to the authorization endpoint when OAuth is specified as the * authorization type.

*/ inline void SetAuthorizationEndpoint(const Aws::String& value) { m_authorizationEndpointHasBeenSet = true; m_authorizationEndpoint = value; } /** *

The URL to the authorization endpoint when OAuth is specified as the * authorization type.

*/ inline void SetAuthorizationEndpoint(Aws::String&& value) { m_authorizationEndpointHasBeenSet = true; m_authorizationEndpoint = std::move(value); } /** *

The URL to the authorization endpoint when OAuth is specified as the * authorization type.

*/ inline void SetAuthorizationEndpoint(const char* value) { m_authorizationEndpointHasBeenSet = true; m_authorizationEndpoint.assign(value); } /** *

The URL to the authorization endpoint when OAuth is specified as the * authorization type.

*/ inline UpdateConnectionOAuthRequestParameters& WithAuthorizationEndpoint(const Aws::String& value) { SetAuthorizationEndpoint(value); return *this;} /** *

The URL to the authorization endpoint when OAuth is specified as the * authorization type.

*/ inline UpdateConnectionOAuthRequestParameters& WithAuthorizationEndpoint(Aws::String&& value) { SetAuthorizationEndpoint(std::move(value)); return *this;} /** *

The URL to the authorization endpoint when OAuth is specified as the * authorization type.

*/ inline UpdateConnectionOAuthRequestParameters& WithAuthorizationEndpoint(const char* value) { SetAuthorizationEndpoint(value); return *this;} /** *

The method used to connect to the HTTP endpoint.

*/ inline const ConnectionOAuthHttpMethod& GetHttpMethod() const{ return m_httpMethod; } /** *

The method used to connect to the HTTP endpoint.

*/ inline bool HttpMethodHasBeenSet() const { return m_httpMethodHasBeenSet; } /** *

The method used to connect to the HTTP endpoint.

*/ inline void SetHttpMethod(const ConnectionOAuthHttpMethod& value) { m_httpMethodHasBeenSet = true; m_httpMethod = value; } /** *

The method used to connect to the HTTP endpoint.

*/ inline void SetHttpMethod(ConnectionOAuthHttpMethod&& value) { m_httpMethodHasBeenSet = true; m_httpMethod = std::move(value); } /** *

The method used to connect to the HTTP endpoint.

*/ inline UpdateConnectionOAuthRequestParameters& WithHttpMethod(const ConnectionOAuthHttpMethod& value) { SetHttpMethod(value); return *this;} /** *

The method used to connect to the HTTP endpoint.

*/ inline UpdateConnectionOAuthRequestParameters& WithHttpMethod(ConnectionOAuthHttpMethod&& value) { SetHttpMethod(std::move(value)); return *this;} /** *

The additional HTTP parameters used for the OAuth authorization request.

*/ inline const ConnectionHttpParameters& GetOAuthHttpParameters() const{ return m_oAuthHttpParameters; } /** *

The additional HTTP parameters used for the OAuth authorization request.

*/ inline bool OAuthHttpParametersHasBeenSet() const { return m_oAuthHttpParametersHasBeenSet; } /** *

The additional HTTP parameters used for the OAuth authorization request.

*/ inline void SetOAuthHttpParameters(const ConnectionHttpParameters& value) { m_oAuthHttpParametersHasBeenSet = true; m_oAuthHttpParameters = value; } /** *

The additional HTTP parameters used for the OAuth authorization request.

*/ inline void SetOAuthHttpParameters(ConnectionHttpParameters&& value) { m_oAuthHttpParametersHasBeenSet = true; m_oAuthHttpParameters = std::move(value); } /** *

The additional HTTP parameters used for the OAuth authorization request.

*/ inline UpdateConnectionOAuthRequestParameters& WithOAuthHttpParameters(const ConnectionHttpParameters& value) { SetOAuthHttpParameters(value); return *this;} /** *

The additional HTTP parameters used for the OAuth authorization request.

*/ inline UpdateConnectionOAuthRequestParameters& WithOAuthHttpParameters(ConnectionHttpParameters&& value) { SetOAuthHttpParameters(std::move(value)); return *this;} private: UpdateConnectionOAuthClientRequestParameters m_clientParameters; bool m_clientParametersHasBeenSet = false; Aws::String m_authorizationEndpoint; bool m_authorizationEndpointHasBeenSet = false; ConnectionOAuthHttpMethod m_httpMethod; bool m_httpMethodHasBeenSet = false; ConnectionHttpParameters m_oAuthHttpParameters; bool m_oAuthHttpParametersHasBeenSet = false; }; } // namespace Model } // namespace CloudWatchEvents } // namespace Aws