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/shield/Shield_EXPORTS.h> 8 9 namespace Aws 10 { 11 namespace Utils 12 { 13 namespace Json 14 { 15 class JsonValue; 16 class JsonView; 17 } // namespace Json 18 } // namespace Utils 19 namespace Shield 20 { 21 namespace Model 22 { 23 24 /** 25 * <p>Limits settings on protection groups with arbitrary pattern type. 26 * </p><p><h3>See Also:</h3> <a 27 * href="http://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/ProtectionGroupArbitraryPatternLimits">AWS 28 * API Reference</a></p> 29 */ 30 class AWS_SHIELD_API ProtectionGroupArbitraryPatternLimits 31 { 32 public: 33 ProtectionGroupArbitraryPatternLimits(); 34 ProtectionGroupArbitraryPatternLimits(Aws::Utils::Json::JsonView jsonValue); 35 ProtectionGroupArbitraryPatternLimits& operator=(Aws::Utils::Json::JsonView jsonValue); 36 Aws::Utils::Json::JsonValue Jsonize() const; 37 38 39 /** 40 * <p>The maximum number of resources you can specify for a single arbitrary 41 * pattern in a protection group.</p> 42 */ GetMaxMembers()43 inline long long GetMaxMembers() const{ return m_maxMembers; } 44 45 /** 46 * <p>The maximum number of resources you can specify for a single arbitrary 47 * pattern in a protection group.</p> 48 */ MaxMembersHasBeenSet()49 inline bool MaxMembersHasBeenSet() const { return m_maxMembersHasBeenSet; } 50 51 /** 52 * <p>The maximum number of resources you can specify for a single arbitrary 53 * pattern in a protection group.</p> 54 */ SetMaxMembers(long long value)55 inline void SetMaxMembers(long long value) { m_maxMembersHasBeenSet = true; m_maxMembers = value; } 56 57 /** 58 * <p>The maximum number of resources you can specify for a single arbitrary 59 * pattern in a protection group.</p> 60 */ WithMaxMembers(long long value)61 inline ProtectionGroupArbitraryPatternLimits& WithMaxMembers(long long value) { SetMaxMembers(value); return *this;} 62 63 private: 64 65 long long m_maxMembers; 66 bool m_maxMembersHasBeenSet; 67 }; 68 69 } // namespace Model 70 } // namespace Shield 71 } // namespace Aws 72