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/medialive/MediaLive_EXPORTS.h> 8 #include <aws/core/utils/memory/stl/AWSString.h> 9 #include <utility> 10 11 namespace Aws 12 { 13 namespace Utils 14 { 15 namespace Json 16 { 17 class JsonValue; 18 class JsonView; 19 } // namespace Json 20 } // namespace Utils 21 namespace MediaLive 22 { 23 namespace Model 24 { 25 26 /** 27 * An IPv4 CIDR to whitelist.<p><h3>See Also:</h3> <a 28 * href="http://docs.aws.amazon.com/goto/WebAPI/medialive-2017-10-14/InputWhitelistRuleCidr">AWS 29 * API Reference</a></p> 30 */ 31 class AWS_MEDIALIVE_API InputWhitelistRuleCidr 32 { 33 public: 34 InputWhitelistRuleCidr(); 35 InputWhitelistRuleCidr(Aws::Utils::Json::JsonView jsonValue); 36 InputWhitelistRuleCidr& operator=(Aws::Utils::Json::JsonView jsonValue); 37 Aws::Utils::Json::JsonValue Jsonize() const; 38 39 40 /** 41 * The IPv4 CIDR to whitelist. 42 */ GetCidr()43 inline const Aws::String& GetCidr() const{ return m_cidr; } 44 45 /** 46 * The IPv4 CIDR to whitelist. 47 */ CidrHasBeenSet()48 inline bool CidrHasBeenSet() const { return m_cidrHasBeenSet; } 49 50 /** 51 * The IPv4 CIDR to whitelist. 52 */ SetCidr(const Aws::String & value)53 inline void SetCidr(const Aws::String& value) { m_cidrHasBeenSet = true; m_cidr = value; } 54 55 /** 56 * The IPv4 CIDR to whitelist. 57 */ SetCidr(Aws::String && value)58 inline void SetCidr(Aws::String&& value) { m_cidrHasBeenSet = true; m_cidr = std::move(value); } 59 60 /** 61 * The IPv4 CIDR to whitelist. 62 */ SetCidr(const char * value)63 inline void SetCidr(const char* value) { m_cidrHasBeenSet = true; m_cidr.assign(value); } 64 65 /** 66 * The IPv4 CIDR to whitelist. 67 */ WithCidr(const Aws::String & value)68 inline InputWhitelistRuleCidr& WithCidr(const Aws::String& value) { SetCidr(value); return *this;} 69 70 /** 71 * The IPv4 CIDR to whitelist. 72 */ WithCidr(Aws::String && value)73 inline InputWhitelistRuleCidr& WithCidr(Aws::String&& value) { SetCidr(std::move(value)); return *this;} 74 75 /** 76 * The IPv4 CIDR to whitelist. 77 */ WithCidr(const char * value)78 inline InputWhitelistRuleCidr& WithCidr(const char* value) { SetCidr(value); return *this;} 79 80 private: 81 82 Aws::String m_cidr; 83 bool m_cidrHasBeenSet; 84 }; 85 86 } // namespace Model 87 } // namespace MediaLive 88 } // namespace Aws 89