/** * 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 Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace FMS { namespace Model { /** *

An Firewall Manager protocols list.

See Also:

AWS * API Reference

*/ class ProtocolsListData { public: AWS_FMS_API ProtocolsListData(); AWS_FMS_API ProtocolsListData(Aws::Utils::Json::JsonView jsonValue); AWS_FMS_API ProtocolsListData& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_FMS_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The ID of the Firewall Manager protocols list.

*/ inline const Aws::String& GetListId() const{ return m_listId; } /** *

The ID of the Firewall Manager protocols list.

*/ inline bool ListIdHasBeenSet() const { return m_listIdHasBeenSet; } /** *

The ID of the Firewall Manager protocols list.

*/ inline void SetListId(const Aws::String& value) { m_listIdHasBeenSet = true; m_listId = value; } /** *

The ID of the Firewall Manager protocols list.

*/ inline void SetListId(Aws::String&& value) { m_listIdHasBeenSet = true; m_listId = std::move(value); } /** *

The ID of the Firewall Manager protocols list.

*/ inline void SetListId(const char* value) { m_listIdHasBeenSet = true; m_listId.assign(value); } /** *

The ID of the Firewall Manager protocols list.

*/ inline ProtocolsListData& WithListId(const Aws::String& value) { SetListId(value); return *this;} /** *

The ID of the Firewall Manager protocols list.

*/ inline ProtocolsListData& WithListId(Aws::String&& value) { SetListId(std::move(value)); return *this;} /** *

The ID of the Firewall Manager protocols list.

*/ inline ProtocolsListData& WithListId(const char* value) { SetListId(value); return *this;} /** *

The name of the Firewall Manager protocols list.

*/ inline const Aws::String& GetListName() const{ return m_listName; } /** *

The name of the Firewall Manager protocols list.

*/ inline bool ListNameHasBeenSet() const { return m_listNameHasBeenSet; } /** *

The name of the Firewall Manager protocols list.

*/ inline void SetListName(const Aws::String& value) { m_listNameHasBeenSet = true; m_listName = value; } /** *

The name of the Firewall Manager protocols list.

*/ inline void SetListName(Aws::String&& value) { m_listNameHasBeenSet = true; m_listName = std::move(value); } /** *

The name of the Firewall Manager protocols list.

*/ inline void SetListName(const char* value) { m_listNameHasBeenSet = true; m_listName.assign(value); } /** *

The name of the Firewall Manager protocols list.

*/ inline ProtocolsListData& WithListName(const Aws::String& value) { SetListName(value); return *this;} /** *

The name of the Firewall Manager protocols list.

*/ inline ProtocolsListData& WithListName(Aws::String&& value) { SetListName(std::move(value)); return *this;} /** *

The name of the Firewall Manager protocols list.

*/ inline ProtocolsListData& WithListName(const char* value) { SetListName(value); return *this;} /** *

A unique identifier for each update to the list. When you update the list, * the update token must match the token of the current version of the application * list. You can retrieve the update token by getting the list.

*/ inline const Aws::String& GetListUpdateToken() const{ return m_listUpdateToken; } /** *

A unique identifier for each update to the list. When you update the list, * the update token must match the token of the current version of the application * list. You can retrieve the update token by getting the list.

*/ inline bool ListUpdateTokenHasBeenSet() const { return m_listUpdateTokenHasBeenSet; } /** *

A unique identifier for each update to the list. When you update the list, * the update token must match the token of the current version of the application * list. You can retrieve the update token by getting the list.

*/ inline void SetListUpdateToken(const Aws::String& value) { m_listUpdateTokenHasBeenSet = true; m_listUpdateToken = value; } /** *

A unique identifier for each update to the list. When you update the list, * the update token must match the token of the current version of the application * list. You can retrieve the update token by getting the list.

*/ inline void SetListUpdateToken(Aws::String&& value) { m_listUpdateTokenHasBeenSet = true; m_listUpdateToken = std::move(value); } /** *

A unique identifier for each update to the list. When you update the list, * the update token must match the token of the current version of the application * list. You can retrieve the update token by getting the list.

*/ inline void SetListUpdateToken(const char* value) { m_listUpdateTokenHasBeenSet = true; m_listUpdateToken.assign(value); } /** *

A unique identifier for each update to the list. When you update the list, * the update token must match the token of the current version of the application * list. You can retrieve the update token by getting the list.

*/ inline ProtocolsListData& WithListUpdateToken(const Aws::String& value) { SetListUpdateToken(value); return *this;} /** *

A unique identifier for each update to the list. When you update the list, * the update token must match the token of the current version of the application * list. You can retrieve the update token by getting the list.

*/ inline ProtocolsListData& WithListUpdateToken(Aws::String&& value) { SetListUpdateToken(std::move(value)); return *this;} /** *

A unique identifier for each update to the list. When you update the list, * the update token must match the token of the current version of the application * list. You can retrieve the update token by getting the list.

*/ inline ProtocolsListData& WithListUpdateToken(const char* value) { SetListUpdateToken(value); return *this;} /** *

The time that the Firewall Manager protocols list was created.

*/ inline const Aws::Utils::DateTime& GetCreateTime() const{ return m_createTime; } /** *

The time that the Firewall Manager protocols list was created.

*/ inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; } /** *

The time that the Firewall Manager protocols list was created.

*/ inline void SetCreateTime(const Aws::Utils::DateTime& value) { m_createTimeHasBeenSet = true; m_createTime = value; } /** *

The time that the Firewall Manager protocols list was created.

*/ inline void SetCreateTime(Aws::Utils::DateTime&& value) { m_createTimeHasBeenSet = true; m_createTime = std::move(value); } /** *

The time that the Firewall Manager protocols list was created.

*/ inline ProtocolsListData& WithCreateTime(const Aws::Utils::DateTime& value) { SetCreateTime(value); return *this;} /** *

The time that the Firewall Manager protocols list was created.

*/ inline ProtocolsListData& WithCreateTime(Aws::Utils::DateTime&& value) { SetCreateTime(std::move(value)); return *this;} /** *

The time that the Firewall Manager protocols list was last updated.

*/ inline const Aws::Utils::DateTime& GetLastUpdateTime() const{ return m_lastUpdateTime; } /** *

The time that the Firewall Manager protocols list was last updated.

*/ inline bool LastUpdateTimeHasBeenSet() const { return m_lastUpdateTimeHasBeenSet; } /** *

The time that the Firewall Manager protocols list was last updated.

*/ inline void SetLastUpdateTime(const Aws::Utils::DateTime& value) { m_lastUpdateTimeHasBeenSet = true; m_lastUpdateTime = value; } /** *

The time that the Firewall Manager protocols list was last updated.

*/ inline void SetLastUpdateTime(Aws::Utils::DateTime&& value) { m_lastUpdateTimeHasBeenSet = true; m_lastUpdateTime = std::move(value); } /** *

The time that the Firewall Manager protocols list was last updated.

*/ inline ProtocolsListData& WithLastUpdateTime(const Aws::Utils::DateTime& value) { SetLastUpdateTime(value); return *this;} /** *

The time that the Firewall Manager protocols list was last updated.

*/ inline ProtocolsListData& WithLastUpdateTime(Aws::Utils::DateTime&& value) { SetLastUpdateTime(std::move(value)); return *this;} /** *

An array of protocols in the Firewall Manager protocols list.

*/ inline const Aws::Vector& GetProtocolsList() const{ return m_protocolsList; } /** *

An array of protocols in the Firewall Manager protocols list.

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

An array of protocols in the Firewall Manager protocols list.

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

An array of protocols in the Firewall Manager protocols list.

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

An array of protocols in the Firewall Manager protocols list.

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

An array of protocols in the Firewall Manager protocols list.

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

An array of protocols in the Firewall Manager protocols list.

*/ inline ProtocolsListData& AddProtocolsList(const Aws::String& value) { m_protocolsListHasBeenSet = true; m_protocolsList.push_back(value); return *this; } /** *

An array of protocols in the Firewall Manager protocols list.

*/ inline ProtocolsListData& AddProtocolsList(Aws::String&& value) { m_protocolsListHasBeenSet = true; m_protocolsList.push_back(std::move(value)); return *this; } /** *

An array of protocols in the Firewall Manager protocols list.

*/ inline ProtocolsListData& AddProtocolsList(const char* value) { m_protocolsListHasBeenSet = true; m_protocolsList.push_back(value); return *this; } /** *

A map of previous version numbers to their corresponding protocol arrays.

*/ inline const Aws::Map>& GetPreviousProtocolsList() const{ return m_previousProtocolsList; } /** *

A map of previous version numbers to their corresponding protocol arrays.

*/ inline bool PreviousProtocolsListHasBeenSet() const { return m_previousProtocolsListHasBeenSet; } /** *

A map of previous version numbers to their corresponding protocol arrays.

*/ inline void SetPreviousProtocolsList(const Aws::Map>& value) { m_previousProtocolsListHasBeenSet = true; m_previousProtocolsList = value; } /** *

A map of previous version numbers to their corresponding protocol arrays.

*/ inline void SetPreviousProtocolsList(Aws::Map>&& value) { m_previousProtocolsListHasBeenSet = true; m_previousProtocolsList = std::move(value); } /** *

A map of previous version numbers to their corresponding protocol arrays.

*/ inline ProtocolsListData& WithPreviousProtocolsList(const Aws::Map>& value) { SetPreviousProtocolsList(value); return *this;} /** *

A map of previous version numbers to their corresponding protocol arrays.

*/ inline ProtocolsListData& WithPreviousProtocolsList(Aws::Map>&& value) { SetPreviousProtocolsList(std::move(value)); return *this;} /** *

A map of previous version numbers to their corresponding protocol arrays.

*/ inline ProtocolsListData& AddPreviousProtocolsList(const Aws::String& key, const Aws::Vector& value) { m_previousProtocolsListHasBeenSet = true; m_previousProtocolsList.emplace(key, value); return *this; } /** *

A map of previous version numbers to their corresponding protocol arrays.

*/ inline ProtocolsListData& AddPreviousProtocolsList(Aws::String&& key, const Aws::Vector& value) { m_previousProtocolsListHasBeenSet = true; m_previousProtocolsList.emplace(std::move(key), value); return *this; } /** *

A map of previous version numbers to their corresponding protocol arrays.

*/ inline ProtocolsListData& AddPreviousProtocolsList(const Aws::String& key, Aws::Vector&& value) { m_previousProtocolsListHasBeenSet = true; m_previousProtocolsList.emplace(key, std::move(value)); return *this; } /** *

A map of previous version numbers to their corresponding protocol arrays.

*/ inline ProtocolsListData& AddPreviousProtocolsList(Aws::String&& key, Aws::Vector&& value) { m_previousProtocolsListHasBeenSet = true; m_previousProtocolsList.emplace(std::move(key), std::move(value)); return *this; } /** *

A map of previous version numbers to their corresponding protocol arrays.

*/ inline ProtocolsListData& AddPreviousProtocolsList(const char* key, Aws::Vector&& value) { m_previousProtocolsListHasBeenSet = true; m_previousProtocolsList.emplace(key, std::move(value)); return *this; } /** *

A map of previous version numbers to their corresponding protocol arrays.

*/ inline ProtocolsListData& AddPreviousProtocolsList(const char* key, const Aws::Vector& value) { m_previousProtocolsListHasBeenSet = true; m_previousProtocolsList.emplace(key, value); return *this; } private: Aws::String m_listId; bool m_listIdHasBeenSet = false; Aws::String m_listName; bool m_listNameHasBeenSet = false; Aws::String m_listUpdateToken; bool m_listUpdateTokenHasBeenSet = false; Aws::Utils::DateTime m_createTime; bool m_createTimeHasBeenSet = false; Aws::Utils::DateTime m_lastUpdateTime; bool m_lastUpdateTimeHasBeenSet = false; Aws::Vector m_protocolsList; bool m_protocolsListHasBeenSet = false; Aws::Map> m_previousProtocolsList; bool m_previousProtocolsListHasBeenSet = false; }; } // namespace Model } // namespace FMS } // namespace Aws