/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Contains the authorization parameters to use for the
* connection.See Also:
AWS
* API Reference
The authorization parameters for Basic authorization.
*/ inline const ConnectionBasicAuthResponseParameters& GetBasicAuthParameters() const{ return m_basicAuthParameters; } /** *The authorization parameters for Basic authorization.
*/ inline bool BasicAuthParametersHasBeenSet() const { return m_basicAuthParametersHasBeenSet; } /** *The authorization parameters for Basic authorization.
*/ inline void SetBasicAuthParameters(const ConnectionBasicAuthResponseParameters& value) { m_basicAuthParametersHasBeenSet = true; m_basicAuthParameters = value; } /** *The authorization parameters for Basic authorization.
*/ inline void SetBasicAuthParameters(ConnectionBasicAuthResponseParameters&& value) { m_basicAuthParametersHasBeenSet = true; m_basicAuthParameters = std::move(value); } /** *The authorization parameters for Basic authorization.
*/ inline ConnectionAuthResponseParameters& WithBasicAuthParameters(const ConnectionBasicAuthResponseParameters& value) { SetBasicAuthParameters(value); return *this;} /** *The authorization parameters for Basic authorization.
*/ inline ConnectionAuthResponseParameters& WithBasicAuthParameters(ConnectionBasicAuthResponseParameters&& value) { SetBasicAuthParameters(std::move(value)); return *this;} /** *The OAuth parameters to use for authorization.
*/ inline const ConnectionOAuthResponseParameters& GetOAuthParameters() const{ return m_oAuthParameters; } /** *The OAuth parameters to use for authorization.
*/ inline bool OAuthParametersHasBeenSet() const { return m_oAuthParametersHasBeenSet; } /** *The OAuth parameters to use for authorization.
*/ inline void SetOAuthParameters(const ConnectionOAuthResponseParameters& value) { m_oAuthParametersHasBeenSet = true; m_oAuthParameters = value; } /** *The OAuth parameters to use for authorization.
*/ inline void SetOAuthParameters(ConnectionOAuthResponseParameters&& value) { m_oAuthParametersHasBeenSet = true; m_oAuthParameters = std::move(value); } /** *The OAuth parameters to use for authorization.
*/ inline ConnectionAuthResponseParameters& WithOAuthParameters(const ConnectionOAuthResponseParameters& value) { SetOAuthParameters(value); return *this;} /** *The OAuth parameters to use for authorization.
*/ inline ConnectionAuthResponseParameters& WithOAuthParameters(ConnectionOAuthResponseParameters&& value) { SetOAuthParameters(std::move(value)); return *this;} /** *The API Key parameters to use for authorization.
*/ inline const ConnectionApiKeyAuthResponseParameters& GetApiKeyAuthParameters() const{ return m_apiKeyAuthParameters; } /** *The API Key parameters to use for authorization.
*/ inline bool ApiKeyAuthParametersHasBeenSet() const { return m_apiKeyAuthParametersHasBeenSet; } /** *The API Key parameters to use for authorization.
*/ inline void SetApiKeyAuthParameters(const ConnectionApiKeyAuthResponseParameters& value) { m_apiKeyAuthParametersHasBeenSet = true; m_apiKeyAuthParameters = value; } /** *The API Key parameters to use for authorization.
*/ inline void SetApiKeyAuthParameters(ConnectionApiKeyAuthResponseParameters&& value) { m_apiKeyAuthParametersHasBeenSet = true; m_apiKeyAuthParameters = std::move(value); } /** *The API Key parameters to use for authorization.
*/ inline ConnectionAuthResponseParameters& WithApiKeyAuthParameters(const ConnectionApiKeyAuthResponseParameters& value) { SetApiKeyAuthParameters(value); return *this;} /** *The API Key parameters to use for authorization.
*/ inline ConnectionAuthResponseParameters& WithApiKeyAuthParameters(ConnectionApiKeyAuthResponseParameters&& value) { SetApiKeyAuthParameters(std::move(value)); return *this;} /** *Additional parameters for the connection that are passed through with every * invocation to the HTTP endpoint.
*/ inline const ConnectionHttpParameters& GetInvocationHttpParameters() const{ return m_invocationHttpParameters; } /** *Additional parameters for the connection that are passed through with every * invocation to the HTTP endpoint.
*/ inline bool InvocationHttpParametersHasBeenSet() const { return m_invocationHttpParametersHasBeenSet; } /** *Additional parameters for the connection that are passed through with every * invocation to the HTTP endpoint.
*/ inline void SetInvocationHttpParameters(const ConnectionHttpParameters& value) { m_invocationHttpParametersHasBeenSet = true; m_invocationHttpParameters = value; } /** *Additional parameters for the connection that are passed through with every * invocation to the HTTP endpoint.
*/ inline void SetInvocationHttpParameters(ConnectionHttpParameters&& value) { m_invocationHttpParametersHasBeenSet = true; m_invocationHttpParameters = std::move(value); } /** *Additional parameters for the connection that are passed through with every * invocation to the HTTP endpoint.
*/ inline ConnectionAuthResponseParameters& WithInvocationHttpParameters(const ConnectionHttpParameters& value) { SetInvocationHttpParameters(value); return *this;} /** *Additional parameters for the connection that are passed through with every * invocation to the HTTP endpoint.
*/ inline ConnectionAuthResponseParameters& WithInvocationHttpParameters(ConnectionHttpParameters&& value) { SetInvocationHttpParameters(std::move(value)); return *this;} private: ConnectionBasicAuthResponseParameters m_basicAuthParameters; bool m_basicAuthParametersHasBeenSet = false; ConnectionOAuthResponseParameters m_oAuthParameters; bool m_oAuthParametersHasBeenSet = false; ConnectionApiKeyAuthResponseParameters m_apiKeyAuthParameters; bool m_apiKeyAuthParametersHasBeenSet = false; ConnectionHttpParameters m_invocationHttpParameters; bool m_invocationHttpParametersHasBeenSet = false; }; } // namespace Model } // namespace CloudWatchEvents } // namespace Aws