1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #pragma once 7 #include <aws/fms/FMS_EXPORTS.h> 8 #include <aws/core/utils/memory/stl/AWSString.h> 9 #include <aws/core/utils/memory/stl/AWSVector.h> 10 #include <utility> 11 12 namespace Aws 13 { 14 namespace Utils 15 { 16 namespace Json 17 { 18 class JsonValue; 19 class JsonView; 20 } // namespace Json 21 } // namespace Utils 22 namespace FMS 23 { 24 namespace Model 25 { 26 27 /** 28 * <p>Details of the Firewall Manager protocols list.</p><p><h3>See Also:</h3> <a 29 * href="http://docs.aws.amazon.com/goto/WebAPI/fms-2018-01-01/ProtocolsListDataSummary">AWS 30 * API Reference</a></p> 31 */ 32 class AWS_FMS_API ProtocolsListDataSummary 33 { 34 public: 35 ProtocolsListDataSummary(); 36 ProtocolsListDataSummary(Aws::Utils::Json::JsonView jsonValue); 37 ProtocolsListDataSummary& operator=(Aws::Utils::Json::JsonView jsonValue); 38 Aws::Utils::Json::JsonValue Jsonize() const; 39 40 41 /** 42 * <p>The Amazon Resource Name (ARN) of the specified protocols list.</p> 43 */ GetListArn()44 inline const Aws::String& GetListArn() const{ return m_listArn; } 45 46 /** 47 * <p>The Amazon Resource Name (ARN) of the specified protocols list.</p> 48 */ ListArnHasBeenSet()49 inline bool ListArnHasBeenSet() const { return m_listArnHasBeenSet; } 50 51 /** 52 * <p>The Amazon Resource Name (ARN) of the specified protocols list.</p> 53 */ SetListArn(const Aws::String & value)54 inline void SetListArn(const Aws::String& value) { m_listArnHasBeenSet = true; m_listArn = value; } 55 56 /** 57 * <p>The Amazon Resource Name (ARN) of the specified protocols list.</p> 58 */ SetListArn(Aws::String && value)59 inline void SetListArn(Aws::String&& value) { m_listArnHasBeenSet = true; m_listArn = std::move(value); } 60 61 /** 62 * <p>The Amazon Resource Name (ARN) of the specified protocols list.</p> 63 */ SetListArn(const char * value)64 inline void SetListArn(const char* value) { m_listArnHasBeenSet = true; m_listArn.assign(value); } 65 66 /** 67 * <p>The Amazon Resource Name (ARN) of the specified protocols list.</p> 68 */ WithListArn(const Aws::String & value)69 inline ProtocolsListDataSummary& WithListArn(const Aws::String& value) { SetListArn(value); return *this;} 70 71 /** 72 * <p>The Amazon Resource Name (ARN) of the specified protocols list.</p> 73 */ WithListArn(Aws::String && value)74 inline ProtocolsListDataSummary& WithListArn(Aws::String&& value) { SetListArn(std::move(value)); return *this;} 75 76 /** 77 * <p>The Amazon Resource Name (ARN) of the specified protocols list.</p> 78 */ WithListArn(const char * value)79 inline ProtocolsListDataSummary& WithListArn(const char* value) { SetListArn(value); return *this;} 80 81 82 /** 83 * <p>The ID of the specified protocols list.</p> 84 */ GetListId()85 inline const Aws::String& GetListId() const{ return m_listId; } 86 87 /** 88 * <p>The ID of the specified protocols list.</p> 89 */ ListIdHasBeenSet()90 inline bool ListIdHasBeenSet() const { return m_listIdHasBeenSet; } 91 92 /** 93 * <p>The ID of the specified protocols list.</p> 94 */ SetListId(const Aws::String & value)95 inline void SetListId(const Aws::String& value) { m_listIdHasBeenSet = true; m_listId = value; } 96 97 /** 98 * <p>The ID of the specified protocols list.</p> 99 */ SetListId(Aws::String && value)100 inline void SetListId(Aws::String&& value) { m_listIdHasBeenSet = true; m_listId = std::move(value); } 101 102 /** 103 * <p>The ID of the specified protocols list.</p> 104 */ SetListId(const char * value)105 inline void SetListId(const char* value) { m_listIdHasBeenSet = true; m_listId.assign(value); } 106 107 /** 108 * <p>The ID of the specified protocols list.</p> 109 */ WithListId(const Aws::String & value)110 inline ProtocolsListDataSummary& WithListId(const Aws::String& value) { SetListId(value); return *this;} 111 112 /** 113 * <p>The ID of the specified protocols list.</p> 114 */ WithListId(Aws::String && value)115 inline ProtocolsListDataSummary& WithListId(Aws::String&& value) { SetListId(std::move(value)); return *this;} 116 117 /** 118 * <p>The ID of the specified protocols list.</p> 119 */ WithListId(const char * value)120 inline ProtocolsListDataSummary& WithListId(const char* value) { SetListId(value); return *this;} 121 122 123 /** 124 * <p>The name of the specified protocols list.</p> 125 */ GetListName()126 inline const Aws::String& GetListName() const{ return m_listName; } 127 128 /** 129 * <p>The name of the specified protocols list.</p> 130 */ ListNameHasBeenSet()131 inline bool ListNameHasBeenSet() const { return m_listNameHasBeenSet; } 132 133 /** 134 * <p>The name of the specified protocols list.</p> 135 */ SetListName(const Aws::String & value)136 inline void SetListName(const Aws::String& value) { m_listNameHasBeenSet = true; m_listName = value; } 137 138 /** 139 * <p>The name of the specified protocols list.</p> 140 */ SetListName(Aws::String && value)141 inline void SetListName(Aws::String&& value) { m_listNameHasBeenSet = true; m_listName = std::move(value); } 142 143 /** 144 * <p>The name of the specified protocols list.</p> 145 */ SetListName(const char * value)146 inline void SetListName(const char* value) { m_listNameHasBeenSet = true; m_listName.assign(value); } 147 148 /** 149 * <p>The name of the specified protocols list.</p> 150 */ WithListName(const Aws::String & value)151 inline ProtocolsListDataSummary& WithListName(const Aws::String& value) { SetListName(value); return *this;} 152 153 /** 154 * <p>The name of the specified protocols list.</p> 155 */ WithListName(Aws::String && value)156 inline ProtocolsListDataSummary& WithListName(Aws::String&& value) { SetListName(std::move(value)); return *this;} 157 158 /** 159 * <p>The name of the specified protocols list.</p> 160 */ WithListName(const char * value)161 inline ProtocolsListDataSummary& WithListName(const char* value) { SetListName(value); return *this;} 162 163 164 /** 165 * <p>An array of protocols in the Firewall Manager protocols list.</p> 166 */ GetProtocolsList()167 inline const Aws::Vector<Aws::String>& GetProtocolsList() const{ return m_protocolsList; } 168 169 /** 170 * <p>An array of protocols in the Firewall Manager protocols list.</p> 171 */ ProtocolsListHasBeenSet()172 inline bool ProtocolsListHasBeenSet() const { return m_protocolsListHasBeenSet; } 173 174 /** 175 * <p>An array of protocols in the Firewall Manager protocols list.</p> 176 */ SetProtocolsList(const Aws::Vector<Aws::String> & value)177 inline void SetProtocolsList(const Aws::Vector<Aws::String>& value) { m_protocolsListHasBeenSet = true; m_protocolsList = value; } 178 179 /** 180 * <p>An array of protocols in the Firewall Manager protocols list.</p> 181 */ SetProtocolsList(Aws::Vector<Aws::String> && value)182 inline void SetProtocolsList(Aws::Vector<Aws::String>&& value) { m_protocolsListHasBeenSet = true; m_protocolsList = std::move(value); } 183 184 /** 185 * <p>An array of protocols in the Firewall Manager protocols list.</p> 186 */ WithProtocolsList(const Aws::Vector<Aws::String> & value)187 inline ProtocolsListDataSummary& WithProtocolsList(const Aws::Vector<Aws::String>& value) { SetProtocolsList(value); return *this;} 188 189 /** 190 * <p>An array of protocols in the Firewall Manager protocols list.</p> 191 */ WithProtocolsList(Aws::Vector<Aws::String> && value)192 inline ProtocolsListDataSummary& WithProtocolsList(Aws::Vector<Aws::String>&& value) { SetProtocolsList(std::move(value)); return *this;} 193 194 /** 195 * <p>An array of protocols in the Firewall Manager protocols list.</p> 196 */ AddProtocolsList(const Aws::String & value)197 inline ProtocolsListDataSummary& AddProtocolsList(const Aws::String& value) { m_protocolsListHasBeenSet = true; m_protocolsList.push_back(value); return *this; } 198 199 /** 200 * <p>An array of protocols in the Firewall Manager protocols list.</p> 201 */ AddProtocolsList(Aws::String && value)202 inline ProtocolsListDataSummary& AddProtocolsList(Aws::String&& value) { m_protocolsListHasBeenSet = true; m_protocolsList.push_back(std::move(value)); return *this; } 203 204 /** 205 * <p>An array of protocols in the Firewall Manager protocols list.</p> 206 */ AddProtocolsList(const char * value)207 inline ProtocolsListDataSummary& AddProtocolsList(const char* value) { m_protocolsListHasBeenSet = true; m_protocolsList.push_back(value); return *this; } 208 209 private: 210 211 Aws::String m_listArn; 212 bool m_listArnHasBeenSet; 213 214 Aws::String m_listId; 215 bool m_listIdHasBeenSet; 216 217 Aws::String m_listName; 218 bool m_listNameHasBeenSet; 219 220 Aws::Vector<Aws::String> m_protocolsList; 221 bool m_protocolsListHasBeenSet; 222 }; 223 224 } // namespace Model 225 } // namespace FMS 226 } // namespace Aws 227