/** * 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 CloudWatchEvents { namespace Model { /** */ class UpdateConnectionRequest : public CloudWatchEventsRequest { public: AWS_CLOUDWATCHEVENTS_API UpdateConnectionRequest(); // 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 "UpdateConnection"; } AWS_CLOUDWATCHEVENTS_API Aws::String SerializePayload() const override; AWS_CLOUDWATCHEVENTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the connection to update.

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

The name of the connection to update.

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

The name of the connection to update.

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

The name of the connection to update.

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

The name of the connection to update.

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

The name of the connection to update.

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

The name of the connection to update.

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

The name of the connection to update.

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

A description for the connection.

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

A description for the connection.

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

A description for the connection.

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

A description for the connection.

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

A description for the connection.

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

A description for the connection.

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

A description for the connection.

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

A description for the connection.

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

The type of authorization to use for the connection.

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

The type of authorization to use for the connection.

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

The type of authorization to use for the connection.

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

The type of authorization to use for the connection.

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

The type of authorization to use for the connection.

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

The type of authorization to use for the connection.

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

The authorization parameters to use for the connection.

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

The authorization parameters to use for the connection.

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

The authorization parameters to use for the connection.

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

The authorization parameters to use for the connection.

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

The authorization parameters to use for the connection.

*/ inline UpdateConnectionRequest& WithAuthParameters(const UpdateConnectionAuthRequestParameters& value) { SetAuthParameters(value); return *this;} /** *

The authorization parameters to use for the connection.

*/ inline UpdateConnectionRequest& WithAuthParameters(UpdateConnectionAuthRequestParameters&& 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; UpdateConnectionAuthRequestParameters m_authParameters; bool m_authParametersHasBeenSet = false; }; } // namespace Model } // namespace CloudWatchEvents } // namespace Aws