/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace DirectConnect { namespace Model { class AssociateMacSecKeyResult { public: AWS_DIRECTCONNECT_API AssociateMacSecKeyResult(); AWS_DIRECTCONNECT_API AssociateMacSecKeyResult(const Aws::AmazonWebServiceResult& result); AWS_DIRECTCONNECT_API AssociateMacSecKeyResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The ID of the dedicated connection (dxcon-xxxx), or the ID of the LAG * (dxlag-xxxx).

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

The ID of the dedicated connection (dxcon-xxxx), or the ID of the LAG * (dxlag-xxxx).

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

The ID of the dedicated connection (dxcon-xxxx), or the ID of the LAG * (dxlag-xxxx).

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

The ID of the dedicated connection (dxcon-xxxx), or the ID of the LAG * (dxlag-xxxx).

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

The ID of the dedicated connection (dxcon-xxxx), or the ID of the LAG * (dxlag-xxxx).

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

The ID of the dedicated connection (dxcon-xxxx), or the ID of the LAG * (dxlag-xxxx).

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

The ID of the dedicated connection (dxcon-xxxx), or the ID of the LAG * (dxlag-xxxx).

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

The MAC Security (MACsec) security keys associated with the dedicated * connection.

*/ inline const Aws::Vector& GetMacSecKeys() const{ return m_macSecKeys; } /** *

The MAC Security (MACsec) security keys associated with the dedicated * connection.

*/ inline void SetMacSecKeys(const Aws::Vector& value) { m_macSecKeys = value; } /** *

The MAC Security (MACsec) security keys associated with the dedicated * connection.

*/ inline void SetMacSecKeys(Aws::Vector&& value) { m_macSecKeys = std::move(value); } /** *

The MAC Security (MACsec) security keys associated with the dedicated * connection.

*/ inline AssociateMacSecKeyResult& WithMacSecKeys(const Aws::Vector& value) { SetMacSecKeys(value); return *this;} /** *

The MAC Security (MACsec) security keys associated with the dedicated * connection.

*/ inline AssociateMacSecKeyResult& WithMacSecKeys(Aws::Vector&& value) { SetMacSecKeys(std::move(value)); return *this;} /** *

The MAC Security (MACsec) security keys associated with the dedicated * connection.

*/ inline AssociateMacSecKeyResult& AddMacSecKeys(const MacSecKey& value) { m_macSecKeys.push_back(value); return *this; } /** *

The MAC Security (MACsec) security keys associated with the dedicated * connection.

*/ inline AssociateMacSecKeyResult& AddMacSecKeys(MacSecKey&& value) { m_macSecKeys.push_back(std::move(value)); return *this; } inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline AssociateMacSecKeyResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline AssociateMacSecKeyResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline AssociateMacSecKeyResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_connectionId; Aws::Vector m_macSecKeys; Aws::String m_requestId; }; } // namespace Model } // namespace DirectConnect } // namespace Aws