AWS SDK for C++  0.14.3
AWS SDK for C++
OptionStatus.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
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Json
25 {
26  class JsonValue;
27 } // namespace Json
28 } // namespace Utils
29 namespace ElasticsearchService
30 {
31 namespace Model
32 {
33 
38  {
39  public:
40  OptionStatus();
41  OptionStatus(const Aws::Utils::Json::JsonValue& jsonValue);
42  OptionStatus& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
43  Aws::Utils::Json::JsonValue Jsonize() const;
44 
48  inline const Aws::Utils::DateTime& GetCreationDate() const{ return m_creationDate; }
49 
53  inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDateHasBeenSet = true; m_creationDate = value; }
54 
58  inline void SetCreationDate(Aws::Utils::DateTime&& value) { m_creationDateHasBeenSet = true; m_creationDate = value; }
59 
63  inline OptionStatus& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;}
64 
68  inline OptionStatus& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(value); return *this;}
69 
73  inline const Aws::Utils::DateTime& GetUpdateDate() const{ return m_updateDate; }
74 
78  inline void SetUpdateDate(const Aws::Utils::DateTime& value) { m_updateDateHasBeenSet = true; m_updateDate = value; }
79 
83  inline void SetUpdateDate(Aws::Utils::DateTime&& value) { m_updateDateHasBeenSet = true; m_updateDate = value; }
84 
88  inline OptionStatus& WithUpdateDate(const Aws::Utils::DateTime& value) { SetUpdateDate(value); return *this;}
89 
93  inline OptionStatus& WithUpdateDate(Aws::Utils::DateTime&& value) { SetUpdateDate(value); return *this;}
94 
98  inline int GetUpdateVersion() const{ return m_updateVersion; }
99 
103  inline void SetUpdateVersion(int value) { m_updateVersionHasBeenSet = true; m_updateVersion = value; }
104 
108  inline OptionStatus& WithUpdateVersion(int value) { SetUpdateVersion(value); return *this;}
109 
113  inline const OptionState& GetState() const{ return m_state; }
114 
118  inline void SetState(const OptionState& value) { m_stateHasBeenSet = true; m_state = value; }
119 
123  inline void SetState(OptionState&& value) { m_stateHasBeenSet = true; m_state = value; }
124 
128  inline OptionStatus& WithState(const OptionState& value) { SetState(value); return *this;}
129 
133  inline OptionStatus& WithState(OptionState&& value) { SetState(value); return *this;}
134 
138  inline bool GetPendingDeletion() const{ return m_pendingDeletion; }
139 
143  inline void SetPendingDeletion(bool value) { m_pendingDeletionHasBeenSet = true; m_pendingDeletion = value; }
144 
148  inline OptionStatus& WithPendingDeletion(bool value) { SetPendingDeletion(value); return *this;}
149 
150  private:
151  Aws::Utils::DateTime m_creationDate;
152  bool m_creationDateHasBeenSet;
153  Aws::Utils::DateTime m_updateDate;
154  bool m_updateDateHasBeenSet;
155  int m_updateVersion;
156  bool m_updateVersionHasBeenSet;
157  OptionState m_state;
158  bool m_stateHasBeenSet;
159  bool m_pendingDeletion;
160  bool m_pendingDeletionHasBeenSet;
161  };
162 
163 } // namespace Model
164 } // namespace ElasticsearchService
165 } // namespace Aws
const Aws::Utils::DateTime & GetCreationDate() const
Definition: OptionStatus.h:48
OptionStatus & WithUpdateDate(Aws::Utils::DateTime &&value)
Definition: OptionStatus.h:93
void SetState(const OptionState &value)
Definition: OptionStatus.h:118
void SetUpdateDate(const Aws::Utils::DateTime &value)
Definition: OptionStatus.h:78
OptionStatus & WithPendingDeletion(bool value)
Definition: OptionStatus.h:148
OptionStatus & WithCreationDate(Aws::Utils::DateTime &&value)
Definition: OptionStatus.h:68
OptionStatus & WithState(const OptionState &value)
Definition: OptionStatus.h:128
OptionStatus & WithState(OptionState &&value)
Definition: OptionStatus.h:133
#define AWS_ELASTICSEARCHSERVICE_API
OptionStatus & WithCreationDate(const Aws::Utils::DateTime &value)
Definition: OptionStatus.h:63
void SetUpdateDate(Aws::Utils::DateTime &&value)
Definition: OptionStatus.h:83
void SetCreationDate(const Aws::Utils::DateTime &value)
Definition: OptionStatus.h:53
void SetCreationDate(Aws::Utils::DateTime &&value)
Definition: OptionStatus.h:58
const Aws::Utils::DateTime & GetUpdateDate() const
Definition: OptionStatus.h:73
JSON (JavaScript Object Notation).
OptionStatus & WithUpdateDate(const Aws::Utils::DateTime &value)
Definition: OptionStatus.h:88