AWS SDK for C++  0.14.3
AWS SDK for C++
OperationSummary.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
21 
22 namespace Aws
23 {
24 namespace Utils
25 {
26 namespace Json
27 {
28  class JsonValue;
29 } // namespace Json
30 } // namespace Utils
31 namespace Route53Domains
32 {
33 namespace Model
34 {
35 
40  {
41  public:
44  OperationSummary& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
45  Aws::Utils::Json::JsonValue Jsonize() const;
46 
50  inline const Aws::String& GetOperationId() const{ return m_operationId; }
51 
55  inline void SetOperationId(const Aws::String& value) { m_operationIdHasBeenSet = true; m_operationId = value; }
56 
60  inline void SetOperationId(Aws::String&& value) { m_operationIdHasBeenSet = true; m_operationId = value; }
61 
65  inline void SetOperationId(const char* value) { m_operationIdHasBeenSet = true; m_operationId.assign(value); }
66 
70  inline OperationSummary& WithOperationId(const Aws::String& value) { SetOperationId(value); return *this;}
71 
75  inline OperationSummary& WithOperationId(Aws::String&& value) { SetOperationId(value); return *this;}
76 
80  inline OperationSummary& WithOperationId(const char* value) { SetOperationId(value); return *this;}
81 
86  inline const OperationStatus& GetStatus() const{ return m_status; }
87 
92  inline void SetStatus(const OperationStatus& value) { m_statusHasBeenSet = true; m_status = value; }
93 
98  inline void SetStatus(OperationStatus&& value) { m_statusHasBeenSet = true; m_status = value; }
99 
104  inline OperationSummary& WithStatus(const OperationStatus& value) { SetStatus(value); return *this;}
105 
110  inline OperationSummary& WithStatus(OperationStatus&& value) { SetStatus(value); return *this;}
111 
119  inline const OperationType& GetType() const{ return m_type; }
120 
128  inline void SetType(const OperationType& value) { m_typeHasBeenSet = true; m_type = value; }
129 
137  inline void SetType(OperationType&& value) { m_typeHasBeenSet = true; m_type = value; }
138 
146  inline OperationSummary& WithType(const OperationType& value) { SetType(value); return *this;}
147 
155  inline OperationSummary& WithType(OperationType&& value) { SetType(value); return *this;}
156 
160  inline const Aws::Utils::DateTime& GetSubmittedDate() const{ return m_submittedDate; }
161 
165  inline void SetSubmittedDate(const Aws::Utils::DateTime& value) { m_submittedDateHasBeenSet = true; m_submittedDate = value; }
166 
170  inline void SetSubmittedDate(Aws::Utils::DateTime&& value) { m_submittedDateHasBeenSet = true; m_submittedDate = value; }
171 
175  inline OperationSummary& WithSubmittedDate(const Aws::Utils::DateTime& value) { SetSubmittedDate(value); return *this;}
176 
180  inline OperationSummary& WithSubmittedDate(Aws::Utils::DateTime&& value) { SetSubmittedDate(value); return *this;}
181 
182  private:
183  Aws::String m_operationId;
184  bool m_operationIdHasBeenSet;
185  OperationStatus m_status;
186  bool m_statusHasBeenSet;
187  OperationType m_type;
188  bool m_typeHasBeenSet;
189  Aws::Utils::DateTime m_submittedDate;
190  bool m_submittedDateHasBeenSet;
191  };
192 
193 } // namespace Model
194 } // namespace Route53Domains
195 } // namespace Aws
OperationSummary & WithOperationId(const Aws::String &value)
const Aws::String & GetOperationId() const
OperationSummary & WithOperationId(Aws::String &&value)
void SetSubmittedDate(Aws::Utils::DateTime &&value)
const OperationType & GetType() const
#define AWS_ROUTE53DOMAINS_API
OperationSummary & WithType(OperationType &&value)
const OperationStatus & GetStatus() const
OperationSummary & WithSubmittedDate(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetSubmittedDate() const
void SetType(const OperationType &value)
void SetOperationId(const Aws::String &value)
OperationSummary & WithType(const OperationType &value)
OperationSummary & WithStatus(OperationStatus &&value)
void SetStatus(OperationStatus &&value)
OperationSummary & WithStatus(const OperationStatus &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
OperationSummary & WithSubmittedDate(const Aws::Utils::DateTime &value)
void SetSubmittedDate(const Aws::Utils::DateTime &value)
OperationSummary & WithOperationId(const char *value)
void SetStatus(const OperationStatus &value)
JSON (JavaScript Object Notation).