/** * 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 EventBridge { namespace Model { /** */ class CreateConnectionRequest : public EventBridgeRequest { public: AWS_EVENTBRIDGE_API CreateConnectionRequest(); // 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 "CreateConnection"; } AWS_EVENTBRIDGE_API Aws::String SerializePayload() const override; AWS_EVENTBRIDGE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name for the connection to create.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name for the connection to create.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name for the connection to create.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name for the connection to create.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name for the connection to create.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name for the connection to create.

*/ inline CreateConnectionRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name for the connection to create.

*/ inline CreateConnectionRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name for the connection to create.

*/ inline CreateConnectionRequest& WithName(const char* value) { SetName(value); return *this;} /** *

A description for the connection to create.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

A description for the connection to create.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

A description for the connection to create.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

A description for the connection to create.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

A description for the connection to create.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

A description for the connection to create.

*/ inline CreateConnectionRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

A description for the connection to create.

*/ inline CreateConnectionRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

A description for the connection to create.

*/ inline CreateConnectionRequest& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The type of authorization to use for the connection.

OAUTH * tokens are refreshed when a 401 or 407 response is returned.

*/ inline const ConnectionAuthorizationType& GetAuthorizationType() const{ return m_authorizationType; } /** *

The type of authorization to use for the connection.

OAUTH * tokens are refreshed when a 401 or 407 response is returned.

*/ inline bool AuthorizationTypeHasBeenSet() const { return m_authorizationTypeHasBeenSet; } /** *

The type of authorization to use for the connection.

OAUTH * tokens are refreshed when a 401 or 407 response is returned.

*/ inline void SetAuthorizationType(const ConnectionAuthorizationType& value) { m_authorizationTypeHasBeenSet = true; m_authorizationType = value; } /** *

The type of authorization to use for the connection.

OAUTH * tokens are refreshed when a 401 or 407 response is returned.

*/ inline void SetAuthorizationType(ConnectionAuthorizationType&& value) { m_authorizationTypeHasBeenSet = true; m_authorizationType = std::move(value); } /** *

The type of authorization to use for the connection.

OAUTH * tokens are refreshed when a 401 or 407 response is returned.

*/ inline CreateConnectionRequest& WithAuthorizationType(const ConnectionAuthorizationType& value) { SetAuthorizationType(value); return *this;} /** *

The type of authorization to use for the connection.

OAUTH * tokens are refreshed when a 401 or 407 response is returned.

*/ inline CreateConnectionRequest& WithAuthorizationType(ConnectionAuthorizationType&& value) { SetAuthorizationType(std::move(value)); return *this;} /** *

A CreateConnectionAuthRequestParameters object that contains the * authorization parameters to use to authorize with the endpoint.

*/ inline const CreateConnectionAuthRequestParameters& GetAuthParameters() const{ return m_authParameters; } /** *

A CreateConnectionAuthRequestParameters object that contains the * authorization parameters to use to authorize with the endpoint.

*/ inline bool AuthParametersHasBeenSet() const { return m_authParametersHasBeenSet; } /** *

A CreateConnectionAuthRequestParameters object that contains the * authorization parameters to use to authorize with the endpoint.

*/ inline void SetAuthParameters(const CreateConnectionAuthRequestParameters& value) { m_authParametersHasBeenSet = true; m_authParameters = value; } /** *

A CreateConnectionAuthRequestParameters object that contains the * authorization parameters to use to authorize with the endpoint.

*/ inline void SetAuthParameters(CreateConnectionAuthRequestParameters&& value) { m_authParametersHasBeenSet = true; m_authParameters = std::move(value); } /** *

A CreateConnectionAuthRequestParameters object that contains the * authorization parameters to use to authorize with the endpoint.

*/ inline CreateConnectionRequest& WithAuthParameters(const CreateConnectionAuthRequestParameters& value) { SetAuthParameters(value); return *this;} /** *

A CreateConnectionAuthRequestParameters object that contains the * authorization parameters to use to authorize with the endpoint.

*/ inline CreateConnectionRequest& WithAuthParameters(CreateConnectionAuthRequestParameters&& value) { SetAuthParameters(std::move(value)); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; ConnectionAuthorizationType m_authorizationType; bool m_authorizationTypeHasBeenSet = false; CreateConnectionAuthRequestParameters m_authParameters; bool m_authParametersHasBeenSet = false; }; } // namespace Model } // namespace EventBridge } // namespace Aws