/** * 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 FMS { namespace Model { /** */ class PutProtocolsListRequest : public FMSRequest { public: AWS_FMS_API PutProtocolsListRequest(); // 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 "PutProtocolsList"; } AWS_FMS_API Aws::String SerializePayload() const override; AWS_FMS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The details of the Firewall Manager protocols list to be created.

*/ inline const ProtocolsListData& GetProtocolsList() const{ return m_protocolsList; } /** *

The details of the Firewall Manager protocols list to be created.

*/ inline bool ProtocolsListHasBeenSet() const { return m_protocolsListHasBeenSet; } /** *

The details of the Firewall Manager protocols list to be created.

*/ inline void SetProtocolsList(const ProtocolsListData& value) { m_protocolsListHasBeenSet = true; m_protocolsList = value; } /** *

The details of the Firewall Manager protocols list to be created.

*/ inline void SetProtocolsList(ProtocolsListData&& value) { m_protocolsListHasBeenSet = true; m_protocolsList = std::move(value); } /** *

The details of the Firewall Manager protocols list to be created.

*/ inline PutProtocolsListRequest& WithProtocolsList(const ProtocolsListData& value) { SetProtocolsList(value); return *this;} /** *

The details of the Firewall Manager protocols list to be created.

*/ inline PutProtocolsListRequest& WithProtocolsList(ProtocolsListData&& value) { SetProtocolsList(std::move(value)); return *this;} /** *

The tags associated with the resource.

*/ inline const Aws::Vector& GetTagList() const{ return m_tagList; } /** *

The tags associated with the resource.

*/ inline bool TagListHasBeenSet() const { return m_tagListHasBeenSet; } /** *

The tags associated with the resource.

*/ inline void SetTagList(const Aws::Vector& value) { m_tagListHasBeenSet = true; m_tagList = value; } /** *

The tags associated with the resource.

*/ inline void SetTagList(Aws::Vector&& value) { m_tagListHasBeenSet = true; m_tagList = std::move(value); } /** *

The tags associated with the resource.

*/ inline PutProtocolsListRequest& WithTagList(const Aws::Vector& value) { SetTagList(value); return *this;} /** *

The tags associated with the resource.

*/ inline PutProtocolsListRequest& WithTagList(Aws::Vector&& value) { SetTagList(std::move(value)); return *this;} /** *

The tags associated with the resource.

*/ inline PutProtocolsListRequest& AddTagList(const Tag& value) { m_tagListHasBeenSet = true; m_tagList.push_back(value); return *this; } /** *

The tags associated with the resource.

*/ inline PutProtocolsListRequest& AddTagList(Tag&& value) { m_tagListHasBeenSet = true; m_tagList.push_back(std::move(value)); return *this; } private: ProtocolsListData m_protocolsList; bool m_protocolsListHasBeenSet = false; Aws::Vector m_tagList; bool m_tagListHasBeenSet = false; }; } // namespace Model } // namespace FMS } // namespace Aws