/** * 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 DirectConnect { namespace Model { /** */ class UpdateConnectionRequest : public DirectConnectRequest { public: AWS_DIRECTCONNECT_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_DIRECTCONNECT_API Aws::String SerializePayload() const override; AWS_DIRECTCONNECT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The ID of the dedicated connection.

You can use * DescribeConnections to retrieve the connection ID.

*/ inline const Aws::String& GetConnectionId() const{ return m_connectionId; } /** *

The ID of the dedicated connection.

You can use * DescribeConnections to retrieve the connection ID.

*/ inline bool ConnectionIdHasBeenSet() const { return m_connectionIdHasBeenSet; } /** *

The ID of the dedicated connection.

You can use * DescribeConnections to retrieve the connection ID.

*/ inline void SetConnectionId(const Aws::String& value) { m_connectionIdHasBeenSet = true; m_connectionId = value; } /** *

The ID of the dedicated connection.

You can use * DescribeConnections to retrieve the connection ID.

*/ inline void SetConnectionId(Aws::String&& value) { m_connectionIdHasBeenSet = true; m_connectionId = std::move(value); } /** *

The ID of the dedicated connection.

You can use * DescribeConnections to retrieve the connection ID.

*/ inline void SetConnectionId(const char* value) { m_connectionIdHasBeenSet = true; m_connectionId.assign(value); } /** *

The ID of the dedicated connection.

You can use * DescribeConnections to retrieve the connection ID.

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

The ID of the dedicated connection.

You can use * DescribeConnections to retrieve the connection ID.

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

The ID of the dedicated connection.

You can use * DescribeConnections to retrieve the connection ID.

*/ inline UpdateConnectionRequest& WithConnectionId(const char* value) { SetConnectionId(value); return *this;} /** *

The name of the connection.

*/ inline const Aws::String& GetConnectionName() const{ return m_connectionName; } /** *

The name of the connection.

*/ inline bool ConnectionNameHasBeenSet() const { return m_connectionNameHasBeenSet; } /** *

The name of the connection.

*/ inline void SetConnectionName(const Aws::String& value) { m_connectionNameHasBeenSet = true; m_connectionName = value; } /** *

The name of the connection.

*/ inline void SetConnectionName(Aws::String&& value) { m_connectionNameHasBeenSet = true; m_connectionName = std::move(value); } /** *

The name of the connection.

*/ inline void SetConnectionName(const char* value) { m_connectionNameHasBeenSet = true; m_connectionName.assign(value); } /** *

The name of the connection.

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

The name of the connection.

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

The name of the connection.

*/ inline UpdateConnectionRequest& WithConnectionName(const char* value) { SetConnectionName(value); return *this;} /** *

The connection MAC Security (MACsec) encryption mode.

The valid values * are no_encrypt, should_encrypt, and * must_encrypt.

*/ inline const Aws::String& GetEncryptionMode() const{ return m_encryptionMode; } /** *

The connection MAC Security (MACsec) encryption mode.

The valid values * are no_encrypt, should_encrypt, and * must_encrypt.

*/ inline bool EncryptionModeHasBeenSet() const { return m_encryptionModeHasBeenSet; } /** *

The connection MAC Security (MACsec) encryption mode.

The valid values * are no_encrypt, should_encrypt, and * must_encrypt.

*/ inline void SetEncryptionMode(const Aws::String& value) { m_encryptionModeHasBeenSet = true; m_encryptionMode = value; } /** *

The connection MAC Security (MACsec) encryption mode.

The valid values * are no_encrypt, should_encrypt, and * must_encrypt.

*/ inline void SetEncryptionMode(Aws::String&& value) { m_encryptionModeHasBeenSet = true; m_encryptionMode = std::move(value); } /** *

The connection MAC Security (MACsec) encryption mode.

The valid values * are no_encrypt, should_encrypt, and * must_encrypt.

*/ inline void SetEncryptionMode(const char* value) { m_encryptionModeHasBeenSet = true; m_encryptionMode.assign(value); } /** *

The connection MAC Security (MACsec) encryption mode.

The valid values * are no_encrypt, should_encrypt, and * must_encrypt.

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

The connection MAC Security (MACsec) encryption mode.

The valid values * are no_encrypt, should_encrypt, and * must_encrypt.

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

The connection MAC Security (MACsec) encryption mode.

The valid values * are no_encrypt, should_encrypt, and * must_encrypt.

*/ inline UpdateConnectionRequest& WithEncryptionMode(const char* value) { SetEncryptionMode(value); return *this;} private: Aws::String m_connectionId; bool m_connectionIdHasBeenSet = false; Aws::String m_connectionName; bool m_connectionNameHasBeenSet = false; Aws::String m_encryptionMode; bool m_encryptionModeHasBeenSet = false; }; } // namespace Model } // namespace DirectConnect } // namespace Aws