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/servicecatalog/ServiceCatalog_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 ServiceCatalog 22 { 23 namespace Model 24 { 25 26 /** 27 * <p>The parameter key-value pair used to update a provisioned 28 * product.</p><p><h3>See Also:</h3> <a 29 * href="http://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/UpdateProvisioningParameter">AWS 30 * API Reference</a></p> 31 */ 32 class AWS_SERVICECATALOG_API UpdateProvisioningParameter 33 { 34 public: 35 UpdateProvisioningParameter(); 36 UpdateProvisioningParameter(Aws::Utils::Json::JsonView jsonValue); 37 UpdateProvisioningParameter& operator=(Aws::Utils::Json::JsonView jsonValue); 38 Aws::Utils::Json::JsonValue Jsonize() const; 39 40 41 /** 42 * <p>The parameter key.</p> 43 */ GetKey()44 inline const Aws::String& GetKey() const{ return m_key; } 45 46 /** 47 * <p>The parameter key.</p> 48 */ KeyHasBeenSet()49 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; } 50 51 /** 52 * <p>The parameter key.</p> 53 */ SetKey(const Aws::String & value)54 inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; } 55 56 /** 57 * <p>The parameter key.</p> 58 */ SetKey(Aws::String && value)59 inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); } 60 61 /** 62 * <p>The parameter key.</p> 63 */ SetKey(const char * value)64 inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); } 65 66 /** 67 * <p>The parameter key.</p> 68 */ WithKey(const Aws::String & value)69 inline UpdateProvisioningParameter& WithKey(const Aws::String& value) { SetKey(value); return *this;} 70 71 /** 72 * <p>The parameter key.</p> 73 */ WithKey(Aws::String && value)74 inline UpdateProvisioningParameter& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;} 75 76 /** 77 * <p>The parameter key.</p> 78 */ WithKey(const char * value)79 inline UpdateProvisioningParameter& WithKey(const char* value) { SetKey(value); return *this;} 80 81 82 /** 83 * <p>The parameter value.</p> 84 */ GetValue()85 inline const Aws::String& GetValue() const{ return m_value; } 86 87 /** 88 * <p>The parameter value.</p> 89 */ ValueHasBeenSet()90 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } 91 92 /** 93 * <p>The parameter value.</p> 94 */ SetValue(const Aws::String & value)95 inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; } 96 97 /** 98 * <p>The parameter value.</p> 99 */ SetValue(Aws::String && value)100 inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); } 101 102 /** 103 * <p>The parameter value.</p> 104 */ SetValue(const char * value)105 inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); } 106 107 /** 108 * <p>The parameter value.</p> 109 */ WithValue(const Aws::String & value)110 inline UpdateProvisioningParameter& WithValue(const Aws::String& value) { SetValue(value); return *this;} 111 112 /** 113 * <p>The parameter value.</p> 114 */ WithValue(Aws::String && value)115 inline UpdateProvisioningParameter& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;} 116 117 /** 118 * <p>The parameter value.</p> 119 */ WithValue(const char * value)120 inline UpdateProvisioningParameter& WithValue(const char* value) { SetValue(value); return *this;} 121 122 123 /** 124 * <p>If set to true, <code>Value</code> is ignored and the previous parameter 125 * value is kept.</p> 126 */ GetUsePreviousValue()127 inline bool GetUsePreviousValue() const{ return m_usePreviousValue; } 128 129 /** 130 * <p>If set to true, <code>Value</code> is ignored and the previous parameter 131 * value is kept.</p> 132 */ UsePreviousValueHasBeenSet()133 inline bool UsePreviousValueHasBeenSet() const { return m_usePreviousValueHasBeenSet; } 134 135 /** 136 * <p>If set to true, <code>Value</code> is ignored and the previous parameter 137 * value is kept.</p> 138 */ SetUsePreviousValue(bool value)139 inline void SetUsePreviousValue(bool value) { m_usePreviousValueHasBeenSet = true; m_usePreviousValue = value; } 140 141 /** 142 * <p>If set to true, <code>Value</code> is ignored and the previous parameter 143 * value is kept.</p> 144 */ WithUsePreviousValue(bool value)145 inline UpdateProvisioningParameter& WithUsePreviousValue(bool value) { SetUsePreviousValue(value); return *this;} 146 147 private: 148 149 Aws::String m_key; 150 bool m_keyHasBeenSet; 151 152 Aws::String m_value; 153 bool m_valueHasBeenSet; 154 155 bool m_usePreviousValue; 156 bool m_usePreviousValueHasBeenSet; 157 }; 158 159 } // namespace Model 160 } // namespace ServiceCatalog 161 } // namespace Aws 162