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 <aws/core/utils/DateTime.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 ServiceCatalog 23 { 24 namespace Model 25 { 26 27 /** 28 * <p>Information about a portfolio.</p><p><h3>See Also:</h3> <a 29 * href="http://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/PortfolioDetail">AWS 30 * API Reference</a></p> 31 */ 32 class AWS_SERVICECATALOG_API PortfolioDetail 33 { 34 public: 35 PortfolioDetail(); 36 PortfolioDetail(Aws::Utils::Json::JsonView jsonValue); 37 PortfolioDetail& operator=(Aws::Utils::Json::JsonView jsonValue); 38 Aws::Utils::Json::JsonValue Jsonize() const; 39 40 41 /** 42 * <p>The portfolio identifier.</p> 43 */ GetId()44 inline const Aws::String& GetId() const{ return m_id; } 45 46 /** 47 * <p>The portfolio identifier.</p> 48 */ IdHasBeenSet()49 inline bool IdHasBeenSet() const { return m_idHasBeenSet; } 50 51 /** 52 * <p>The portfolio identifier.</p> 53 */ SetId(const Aws::String & value)54 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } 55 56 /** 57 * <p>The portfolio identifier.</p> 58 */ SetId(Aws::String && value)59 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } 60 61 /** 62 * <p>The portfolio identifier.</p> 63 */ SetId(const char * value)64 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } 65 66 /** 67 * <p>The portfolio identifier.</p> 68 */ WithId(const Aws::String & value)69 inline PortfolioDetail& WithId(const Aws::String& value) { SetId(value); return *this;} 70 71 /** 72 * <p>The portfolio identifier.</p> 73 */ WithId(Aws::String && value)74 inline PortfolioDetail& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} 75 76 /** 77 * <p>The portfolio identifier.</p> 78 */ WithId(const char * value)79 inline PortfolioDetail& WithId(const char* value) { SetId(value); return *this;} 80 81 82 /** 83 * <p>The ARN assigned to the portfolio.</p> 84 */ GetARN()85 inline const Aws::String& GetARN() const{ return m_aRN; } 86 87 /** 88 * <p>The ARN assigned to the portfolio.</p> 89 */ ARNHasBeenSet()90 inline bool ARNHasBeenSet() const { return m_aRNHasBeenSet; } 91 92 /** 93 * <p>The ARN assigned to the portfolio.</p> 94 */ SetARN(const Aws::String & value)95 inline void SetARN(const Aws::String& value) { m_aRNHasBeenSet = true; m_aRN = value; } 96 97 /** 98 * <p>The ARN assigned to the portfolio.</p> 99 */ SetARN(Aws::String && value)100 inline void SetARN(Aws::String&& value) { m_aRNHasBeenSet = true; m_aRN = std::move(value); } 101 102 /** 103 * <p>The ARN assigned to the portfolio.</p> 104 */ SetARN(const char * value)105 inline void SetARN(const char* value) { m_aRNHasBeenSet = true; m_aRN.assign(value); } 106 107 /** 108 * <p>The ARN assigned to the portfolio.</p> 109 */ WithARN(const Aws::String & value)110 inline PortfolioDetail& WithARN(const Aws::String& value) { SetARN(value); return *this;} 111 112 /** 113 * <p>The ARN assigned to the portfolio.</p> 114 */ WithARN(Aws::String && value)115 inline PortfolioDetail& WithARN(Aws::String&& value) { SetARN(std::move(value)); return *this;} 116 117 /** 118 * <p>The ARN assigned to the portfolio.</p> 119 */ WithARN(const char * value)120 inline PortfolioDetail& WithARN(const char* value) { SetARN(value); return *this;} 121 122 123 /** 124 * <p>The name to use for display purposes.</p> 125 */ GetDisplayName()126 inline const Aws::String& GetDisplayName() const{ return m_displayName; } 127 128 /** 129 * <p>The name to use for display purposes.</p> 130 */ DisplayNameHasBeenSet()131 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; } 132 133 /** 134 * <p>The name to use for display purposes.</p> 135 */ SetDisplayName(const Aws::String & value)136 inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; } 137 138 /** 139 * <p>The name to use for display purposes.</p> 140 */ SetDisplayName(Aws::String && value)141 inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); } 142 143 /** 144 * <p>The name to use for display purposes.</p> 145 */ SetDisplayName(const char * value)146 inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); } 147 148 /** 149 * <p>The name to use for display purposes.</p> 150 */ WithDisplayName(const Aws::String & value)151 inline PortfolioDetail& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;} 152 153 /** 154 * <p>The name to use for display purposes.</p> 155 */ WithDisplayName(Aws::String && value)156 inline PortfolioDetail& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;} 157 158 /** 159 * <p>The name to use for display purposes.</p> 160 */ WithDisplayName(const char * value)161 inline PortfolioDetail& WithDisplayName(const char* value) { SetDisplayName(value); return *this;} 162 163 164 /** 165 * <p>The description of the portfolio.</p> 166 */ GetDescription()167 inline const Aws::String& GetDescription() const{ return m_description; } 168 169 /** 170 * <p>The description of the portfolio.</p> 171 */ DescriptionHasBeenSet()172 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } 173 174 /** 175 * <p>The description of the portfolio.</p> 176 */ SetDescription(const Aws::String & value)177 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } 178 179 /** 180 * <p>The description of the portfolio.</p> 181 */ SetDescription(Aws::String && value)182 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } 183 184 /** 185 * <p>The description of the portfolio.</p> 186 */ SetDescription(const char * value)187 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } 188 189 /** 190 * <p>The description of the portfolio.</p> 191 */ WithDescription(const Aws::String & value)192 inline PortfolioDetail& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} 193 194 /** 195 * <p>The description of the portfolio.</p> 196 */ WithDescription(Aws::String && value)197 inline PortfolioDetail& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} 198 199 /** 200 * <p>The description of the portfolio.</p> 201 */ WithDescription(const char * value)202 inline PortfolioDetail& WithDescription(const char* value) { SetDescription(value); return *this;} 203 204 205 /** 206 * <p>The UTC time stamp of the creation time.</p> 207 */ GetCreatedTime()208 inline const Aws::Utils::DateTime& GetCreatedTime() const{ return m_createdTime; } 209 210 /** 211 * <p>The UTC time stamp of the creation time.</p> 212 */ CreatedTimeHasBeenSet()213 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; } 214 215 /** 216 * <p>The UTC time stamp of the creation time.</p> 217 */ SetCreatedTime(const Aws::Utils::DateTime & value)218 inline void SetCreatedTime(const Aws::Utils::DateTime& value) { m_createdTimeHasBeenSet = true; m_createdTime = value; } 219 220 /** 221 * <p>The UTC time stamp of the creation time.</p> 222 */ SetCreatedTime(Aws::Utils::DateTime && value)223 inline void SetCreatedTime(Aws::Utils::DateTime&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::move(value); } 224 225 /** 226 * <p>The UTC time stamp of the creation time.</p> 227 */ WithCreatedTime(const Aws::Utils::DateTime & value)228 inline PortfolioDetail& WithCreatedTime(const Aws::Utils::DateTime& value) { SetCreatedTime(value); return *this;} 229 230 /** 231 * <p>The UTC time stamp of the creation time.</p> 232 */ WithCreatedTime(Aws::Utils::DateTime && value)233 inline PortfolioDetail& WithCreatedTime(Aws::Utils::DateTime&& value) { SetCreatedTime(std::move(value)); return *this;} 234 235 236 /** 237 * <p>The name of the portfolio provider.</p> 238 */ GetProviderName()239 inline const Aws::String& GetProviderName() const{ return m_providerName; } 240 241 /** 242 * <p>The name of the portfolio provider.</p> 243 */ ProviderNameHasBeenSet()244 inline bool ProviderNameHasBeenSet() const { return m_providerNameHasBeenSet; } 245 246 /** 247 * <p>The name of the portfolio provider.</p> 248 */ SetProviderName(const Aws::String & value)249 inline void SetProviderName(const Aws::String& value) { m_providerNameHasBeenSet = true; m_providerName = value; } 250 251 /** 252 * <p>The name of the portfolio provider.</p> 253 */ SetProviderName(Aws::String && value)254 inline void SetProviderName(Aws::String&& value) { m_providerNameHasBeenSet = true; m_providerName = std::move(value); } 255 256 /** 257 * <p>The name of the portfolio provider.</p> 258 */ SetProviderName(const char * value)259 inline void SetProviderName(const char* value) { m_providerNameHasBeenSet = true; m_providerName.assign(value); } 260 261 /** 262 * <p>The name of the portfolio provider.</p> 263 */ WithProviderName(const Aws::String & value)264 inline PortfolioDetail& WithProviderName(const Aws::String& value) { SetProviderName(value); return *this;} 265 266 /** 267 * <p>The name of the portfolio provider.</p> 268 */ WithProviderName(Aws::String && value)269 inline PortfolioDetail& WithProviderName(Aws::String&& value) { SetProviderName(std::move(value)); return *this;} 270 271 /** 272 * <p>The name of the portfolio provider.</p> 273 */ WithProviderName(const char * value)274 inline PortfolioDetail& WithProviderName(const char* value) { SetProviderName(value); return *this;} 275 276 private: 277 278 Aws::String m_id; 279 bool m_idHasBeenSet; 280 281 Aws::String m_aRN; 282 bool m_aRNHasBeenSet; 283 284 Aws::String m_displayName; 285 bool m_displayNameHasBeenSet; 286 287 Aws::String m_description; 288 bool m_descriptionHasBeenSet; 289 290 Aws::Utils::DateTime m_createdTime; 291 bool m_createdTimeHasBeenSet; 292 293 Aws::String m_providerName; 294 bool m_providerNameHasBeenSet; 295 }; 296 297 } // namespace Model 298 } // namespace ServiceCatalog 299 } // namespace Aws 300