AWS SDK for C++  0.14.3
AWS SDK for C++
ProvisionedProductDetail.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Json
26 {
27  class JsonValue;
28 } // namespace Json
29 } // namespace Utils
30 namespace ServiceCatalog
31 {
32 namespace Model
33 {
34 
39  {
40  public:
43  ProvisionedProductDetail& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
44  Aws::Utils::Json::JsonValue Jsonize() const;
45 
49  inline const Aws::String& GetName() const{ return m_name; }
50 
54  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
55 
59  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
60 
64  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
65 
69  inline ProvisionedProductDetail& WithName(const Aws::String& value) { SetName(value); return *this;}
70 
74  inline ProvisionedProductDetail& WithName(Aws::String&& value) { SetName(value); return *this;}
75 
79  inline ProvisionedProductDetail& WithName(const char* value) { SetName(value); return *this;}
80 
84  inline const Aws::String& GetArn() const{ return m_arn; }
85 
89  inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
90 
94  inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = value; }
95 
99  inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
100 
104  inline ProvisionedProductDetail& WithArn(const Aws::String& value) { SetArn(value); return *this;}
105 
109  inline ProvisionedProductDetail& WithArn(Aws::String&& value) { SetArn(value); return *this;}
110 
114  inline ProvisionedProductDetail& WithArn(const char* value) { SetArn(value); return *this;}
115 
119  inline const Aws::String& GetType() const{ return m_type; }
120 
124  inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
125 
129  inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = value; }
130 
134  inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
135 
139  inline ProvisionedProductDetail& WithType(const Aws::String& value) { SetType(value); return *this;}
140 
144  inline ProvisionedProductDetail& WithType(Aws::String&& value) { SetType(value); return *this;}
145 
149  inline ProvisionedProductDetail& WithType(const char* value) { SetType(value); return *this;}
150 
154  inline const Aws::String& GetId() const{ return m_id; }
155 
159  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
160 
164  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = value; }
165 
169  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
170 
174  inline ProvisionedProductDetail& WithId(const Aws::String& value) { SetId(value); return *this;}
175 
179  inline ProvisionedProductDetail& WithId(Aws::String&& value) { SetId(value); return *this;}
180 
184  inline ProvisionedProductDetail& WithId(const char* value) { SetId(value); return *this;}
185 
189  inline const RecordStatus& GetStatus() const{ return m_status; }
190 
194  inline void SetStatus(const RecordStatus& value) { m_statusHasBeenSet = true; m_status = value; }
195 
199  inline void SetStatus(RecordStatus&& value) { m_statusHasBeenSet = true; m_status = value; }
200 
204  inline ProvisionedProductDetail& WithStatus(const RecordStatus& value) { SetStatus(value); return *this;}
205 
209  inline ProvisionedProductDetail& WithStatus(RecordStatus&& value) { SetStatus(value); return *this;}
210 
214  inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; }
215 
219  inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; }
220 
224  inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; }
225 
229  inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); }
230 
234  inline ProvisionedProductDetail& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;}
235 
239  inline ProvisionedProductDetail& WithStatusMessage(Aws::String&& value) { SetStatusMessage(value); return *this;}
240 
244  inline ProvisionedProductDetail& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;}
245 
249  inline const Aws::Utils::DateTime& GetCreatedTime() const{ return m_createdTime; }
250 
254  inline void SetCreatedTime(const Aws::Utils::DateTime& value) { m_createdTimeHasBeenSet = true; m_createdTime = value; }
255 
259  inline void SetCreatedTime(Aws::Utils::DateTime&& value) { m_createdTimeHasBeenSet = true; m_createdTime = value; }
260 
264  inline ProvisionedProductDetail& WithCreatedTime(const Aws::Utils::DateTime& value) { SetCreatedTime(value); return *this;}
265 
269  inline ProvisionedProductDetail& WithCreatedTime(Aws::Utils::DateTime&& value) { SetCreatedTime(value); return *this;}
270 
274  inline const Aws::String& GetIdempotencyToken() const{ return m_idempotencyToken; }
275 
279  inline void SetIdempotencyToken(const Aws::String& value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken = value; }
280 
284  inline void SetIdempotencyToken(Aws::String&& value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken = value; }
285 
289  inline void SetIdempotencyToken(const char* value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken.assign(value); }
290 
294  inline ProvisionedProductDetail& WithIdempotencyToken(const Aws::String& value) { SetIdempotencyToken(value); return *this;}
295 
299  inline ProvisionedProductDetail& WithIdempotencyToken(Aws::String&& value) { SetIdempotencyToken(value); return *this;}
300 
304  inline ProvisionedProductDetail& WithIdempotencyToken(const char* value) { SetIdempotencyToken(value); return *this;}
305 
310  inline const Aws::String& GetLastRecordId() const{ return m_lastRecordId; }
311 
316  inline void SetLastRecordId(const Aws::String& value) { m_lastRecordIdHasBeenSet = true; m_lastRecordId = value; }
317 
322  inline void SetLastRecordId(Aws::String&& value) { m_lastRecordIdHasBeenSet = true; m_lastRecordId = value; }
323 
328  inline void SetLastRecordId(const char* value) { m_lastRecordIdHasBeenSet = true; m_lastRecordId.assign(value); }
329 
334  inline ProvisionedProductDetail& WithLastRecordId(const Aws::String& value) { SetLastRecordId(value); return *this;}
335 
340  inline ProvisionedProductDetail& WithLastRecordId(Aws::String&& value) { SetLastRecordId(value); return *this;}
341 
346  inline ProvisionedProductDetail& WithLastRecordId(const char* value) { SetLastRecordId(value); return *this;}
347 
348  private:
349  Aws::String m_name;
350  bool m_nameHasBeenSet;
351  Aws::String m_arn;
352  bool m_arnHasBeenSet;
353  Aws::String m_type;
354  bool m_typeHasBeenSet;
355  Aws::String m_id;
356  bool m_idHasBeenSet;
357  RecordStatus m_status;
358  bool m_statusHasBeenSet;
359  Aws::String m_statusMessage;
360  bool m_statusMessageHasBeenSet;
361  Aws::Utils::DateTime m_createdTime;
362  bool m_createdTimeHasBeenSet;
363  Aws::String m_idempotencyToken;
364  bool m_idempotencyTokenHasBeenSet;
365  Aws::String m_lastRecordId;
366  bool m_lastRecordIdHasBeenSet;
367  };
368 
369 } // namespace Model
370 } // namespace ServiceCatalog
371 } // namespace Aws
ProvisionedProductDetail & WithStatus(RecordStatus &&value)
ProvisionedProductDetail & WithStatusMessage(const Aws::String &value)
ProvisionedProductDetail & WithLastRecordId(const Aws::String &value)
#define AWS_SERVICECATALOG_API
ProvisionedProductDetail & WithType(const char *value)
ProvisionedProductDetail & WithStatusMessage(const char *value)
ProvisionedProductDetail & WithStatus(const RecordStatus &value)
ProvisionedProductDetail & WithType(Aws::String &&value)
ProvisionedProductDetail & WithId(const char *value)
ProvisionedProductDetail & WithArn(const Aws::String &value)
ProvisionedProductDetail & WithArn(Aws::String &&value)
ProvisionedProductDetail & WithId(const Aws::String &value)
ProvisionedProductDetail & WithCreatedTime(Aws::Utils::DateTime &&value)
ProvisionedProductDetail & WithName(const char *value)
ProvisionedProductDetail & WithLastRecordId(const char *value)
ProvisionedProductDetail & WithType(const Aws::String &value)
ProvisionedProductDetail & WithIdempotencyToken(const Aws::String &value)
ProvisionedProductDetail & WithName(const Aws::String &value)
ProvisionedProductDetail & WithIdempotencyToken(Aws::String &&value)
void SetCreatedTime(const Aws::Utils::DateTime &value)
ProvisionedProductDetail & WithStatusMessage(Aws::String &&value)
ProvisionedProductDetail & WithCreatedTime(const Aws::Utils::DateTime &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ProvisionedProductDetail & WithId(Aws::String &&value)
ProvisionedProductDetail & WithArn(const char *value)
ProvisionedProductDetail & WithLastRecordId(Aws::String &&value)
ProvisionedProductDetail & WithName(Aws::String &&value)
ProvisionedProductDetail & WithIdempotencyToken(const char *value)
JSON (JavaScript Object Notation).