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>A self-service action association consisting of the Action ID, the Product 28 * ID, and the Provisioning Artifact ID.</p><p><h3>See Also:</h3> <a 29 * href="http://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ServiceActionAssociation">AWS 30 * API Reference</a></p> 31 */ 32 class AWS_SERVICECATALOG_API ServiceActionAssociation 33 { 34 public: 35 ServiceActionAssociation(); 36 ServiceActionAssociation(Aws::Utils::Json::JsonView jsonValue); 37 ServiceActionAssociation& operator=(Aws::Utils::Json::JsonView jsonValue); 38 Aws::Utils::Json::JsonValue Jsonize() const; 39 40 41 /** 42 * <p>The self-service action identifier. For example, 43 * <code>act-fs7abcd89wxyz</code>.</p> 44 */ GetServiceActionId()45 inline const Aws::String& GetServiceActionId() const{ return m_serviceActionId; } 46 47 /** 48 * <p>The self-service action identifier. For example, 49 * <code>act-fs7abcd89wxyz</code>.</p> 50 */ ServiceActionIdHasBeenSet()51 inline bool ServiceActionIdHasBeenSet() const { return m_serviceActionIdHasBeenSet; } 52 53 /** 54 * <p>The self-service action identifier. For example, 55 * <code>act-fs7abcd89wxyz</code>.</p> 56 */ SetServiceActionId(const Aws::String & value)57 inline void SetServiceActionId(const Aws::String& value) { m_serviceActionIdHasBeenSet = true; m_serviceActionId = value; } 58 59 /** 60 * <p>The self-service action identifier. For example, 61 * <code>act-fs7abcd89wxyz</code>.</p> 62 */ SetServiceActionId(Aws::String && value)63 inline void SetServiceActionId(Aws::String&& value) { m_serviceActionIdHasBeenSet = true; m_serviceActionId = std::move(value); } 64 65 /** 66 * <p>The self-service action identifier. For example, 67 * <code>act-fs7abcd89wxyz</code>.</p> 68 */ SetServiceActionId(const char * value)69 inline void SetServiceActionId(const char* value) { m_serviceActionIdHasBeenSet = true; m_serviceActionId.assign(value); } 70 71 /** 72 * <p>The self-service action identifier. For example, 73 * <code>act-fs7abcd89wxyz</code>.</p> 74 */ WithServiceActionId(const Aws::String & value)75 inline ServiceActionAssociation& WithServiceActionId(const Aws::String& value) { SetServiceActionId(value); return *this;} 76 77 /** 78 * <p>The self-service action identifier. For example, 79 * <code>act-fs7abcd89wxyz</code>.</p> 80 */ WithServiceActionId(Aws::String && value)81 inline ServiceActionAssociation& WithServiceActionId(Aws::String&& value) { SetServiceActionId(std::move(value)); return *this;} 82 83 /** 84 * <p>The self-service action identifier. For example, 85 * <code>act-fs7abcd89wxyz</code>.</p> 86 */ WithServiceActionId(const char * value)87 inline ServiceActionAssociation& WithServiceActionId(const char* value) { SetServiceActionId(value); return *this;} 88 89 90 /** 91 * <p>The product identifier. For example, <code>prod-abcdzk7xy33qa</code>.</p> 92 */ GetProductId()93 inline const Aws::String& GetProductId() const{ return m_productId; } 94 95 /** 96 * <p>The product identifier. For example, <code>prod-abcdzk7xy33qa</code>.</p> 97 */ ProductIdHasBeenSet()98 inline bool ProductIdHasBeenSet() const { return m_productIdHasBeenSet; } 99 100 /** 101 * <p>The product identifier. For example, <code>prod-abcdzk7xy33qa</code>.</p> 102 */ SetProductId(const Aws::String & value)103 inline void SetProductId(const Aws::String& value) { m_productIdHasBeenSet = true; m_productId = value; } 104 105 /** 106 * <p>The product identifier. For example, <code>prod-abcdzk7xy33qa</code>.</p> 107 */ SetProductId(Aws::String && value)108 inline void SetProductId(Aws::String&& value) { m_productIdHasBeenSet = true; m_productId = std::move(value); } 109 110 /** 111 * <p>The product identifier. For example, <code>prod-abcdzk7xy33qa</code>.</p> 112 */ SetProductId(const char * value)113 inline void SetProductId(const char* value) { m_productIdHasBeenSet = true; m_productId.assign(value); } 114 115 /** 116 * <p>The product identifier. For example, <code>prod-abcdzk7xy33qa</code>.</p> 117 */ WithProductId(const Aws::String & value)118 inline ServiceActionAssociation& WithProductId(const Aws::String& value) { SetProductId(value); return *this;} 119 120 /** 121 * <p>The product identifier. For example, <code>prod-abcdzk7xy33qa</code>.</p> 122 */ WithProductId(Aws::String && value)123 inline ServiceActionAssociation& WithProductId(Aws::String&& value) { SetProductId(std::move(value)); return *this;} 124 125 /** 126 * <p>The product identifier. For example, <code>prod-abcdzk7xy33qa</code>.</p> 127 */ WithProductId(const char * value)128 inline ServiceActionAssociation& WithProductId(const char* value) { SetProductId(value); return *this;} 129 130 131 /** 132 * <p>The identifier of the provisioning artifact. For example, 133 * <code>pa-4abcdjnxjj6ne</code>.</p> 134 */ GetProvisioningArtifactId()135 inline const Aws::String& GetProvisioningArtifactId() const{ return m_provisioningArtifactId; } 136 137 /** 138 * <p>The identifier of the provisioning artifact. For example, 139 * <code>pa-4abcdjnxjj6ne</code>.</p> 140 */ ProvisioningArtifactIdHasBeenSet()141 inline bool ProvisioningArtifactIdHasBeenSet() const { return m_provisioningArtifactIdHasBeenSet; } 142 143 /** 144 * <p>The identifier of the provisioning artifact. For example, 145 * <code>pa-4abcdjnxjj6ne</code>.</p> 146 */ SetProvisioningArtifactId(const Aws::String & value)147 inline void SetProvisioningArtifactId(const Aws::String& value) { m_provisioningArtifactIdHasBeenSet = true; m_provisioningArtifactId = value; } 148 149 /** 150 * <p>The identifier of the provisioning artifact. For example, 151 * <code>pa-4abcdjnxjj6ne</code>.</p> 152 */ SetProvisioningArtifactId(Aws::String && value)153 inline void SetProvisioningArtifactId(Aws::String&& value) { m_provisioningArtifactIdHasBeenSet = true; m_provisioningArtifactId = std::move(value); } 154 155 /** 156 * <p>The identifier of the provisioning artifact. For example, 157 * <code>pa-4abcdjnxjj6ne</code>.</p> 158 */ SetProvisioningArtifactId(const char * value)159 inline void SetProvisioningArtifactId(const char* value) { m_provisioningArtifactIdHasBeenSet = true; m_provisioningArtifactId.assign(value); } 160 161 /** 162 * <p>The identifier of the provisioning artifact. For example, 163 * <code>pa-4abcdjnxjj6ne</code>.</p> 164 */ WithProvisioningArtifactId(const Aws::String & value)165 inline ServiceActionAssociation& WithProvisioningArtifactId(const Aws::String& value) { SetProvisioningArtifactId(value); return *this;} 166 167 /** 168 * <p>The identifier of the provisioning artifact. For example, 169 * <code>pa-4abcdjnxjj6ne</code>.</p> 170 */ WithProvisioningArtifactId(Aws::String && value)171 inline ServiceActionAssociation& WithProvisioningArtifactId(Aws::String&& value) { SetProvisioningArtifactId(std::move(value)); return *this;} 172 173 /** 174 * <p>The identifier of the provisioning artifact. For example, 175 * <code>pa-4abcdjnxjj6ne</code>.</p> 176 */ WithProvisioningArtifactId(const char * value)177 inline ServiceActionAssociation& WithProvisioningArtifactId(const char* value) { SetProvisioningArtifactId(value); return *this;} 178 179 private: 180 181 Aws::String m_serviceActionId; 182 bool m_serviceActionIdHasBeenSet; 183 184 Aws::String m_productId; 185 bool m_productIdHasBeenSet; 186 187 Aws::String m_provisioningArtifactId; 188 bool m_provisioningArtifactIdHasBeenSet; 189 }; 190 191 } // namespace Model 192 } // namespace ServiceCatalog 193 } // namespace Aws 194