AWS SDK for C++  0.14.3
AWS SDK for C++
PolicyVersion.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
16 #include <aws/iot/IoT_EXPORTS.h>
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Json
25 {
26  class JsonValue;
27 } // namespace Json
28 } // namespace Utils
29 namespace IoT
30 {
31 namespace Model
32 {
33 
38  {
39  public:
40  PolicyVersion();
42  PolicyVersion& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
43  Aws::Utils::Json::JsonValue Jsonize() const;
44 
48  inline const Aws::String& GetVersionId() const{ return m_versionId; }
49 
53  inline void SetVersionId(const Aws::String& value) { m_versionIdHasBeenSet = true; m_versionId = value; }
54 
58  inline void SetVersionId(Aws::String&& value) { m_versionIdHasBeenSet = true; m_versionId = value; }
59 
63  inline void SetVersionId(const char* value) { m_versionIdHasBeenSet = true; m_versionId.assign(value); }
64 
68  inline PolicyVersion& WithVersionId(const Aws::String& value) { SetVersionId(value); return *this;}
69 
73  inline PolicyVersion& WithVersionId(Aws::String&& value) { SetVersionId(value); return *this;}
74 
78  inline PolicyVersion& WithVersionId(const char* value) { SetVersionId(value); return *this;}
79 
83  inline bool GetIsDefaultVersion() const{ return m_isDefaultVersion; }
84 
88  inline void SetIsDefaultVersion(bool value) { m_isDefaultVersionHasBeenSet = true; m_isDefaultVersion = value; }
89 
93  inline PolicyVersion& WithIsDefaultVersion(bool value) { SetIsDefaultVersion(value); return *this;}
94 
98  inline const Aws::Utils::DateTime& GetCreateDate() const{ return m_createDate; }
99 
103  inline void SetCreateDate(const Aws::Utils::DateTime& value) { m_createDateHasBeenSet = true; m_createDate = value; }
104 
108  inline void SetCreateDate(Aws::Utils::DateTime&& value) { m_createDateHasBeenSet = true; m_createDate = value; }
109 
113  inline PolicyVersion& WithCreateDate(const Aws::Utils::DateTime& value) { SetCreateDate(value); return *this;}
114 
118  inline PolicyVersion& WithCreateDate(Aws::Utils::DateTime&& value) { SetCreateDate(value); return *this;}
119 
120  private:
121  Aws::String m_versionId;
122  bool m_versionIdHasBeenSet;
123  bool m_isDefaultVersion;
124  bool m_isDefaultVersionHasBeenSet;
125  Aws::Utils::DateTime m_createDate;
126  bool m_createDateHasBeenSet;
127  };
128 
129 } // namespace Model
130 } // namespace IoT
131 } // namespace Aws
void SetIsDefaultVersion(bool value)
Definition: PolicyVersion.h:88
void SetVersionId(Aws::String &&value)
Definition: PolicyVersion.h:58
const Aws::String & GetVersionId() const
Definition: PolicyVersion.h:48
PolicyVersion & WithVersionId(Aws::String &&value)
Definition: PolicyVersion.h:73
void SetVersionId(const Aws::String &value)
Definition: PolicyVersion.h:53
PolicyVersion & WithVersionId(const Aws::String &value)
Definition: PolicyVersion.h:68
PolicyVersion & WithCreateDate(Aws::Utils::DateTime &&value)
PolicyVersion & WithIsDefaultVersion(bool value)
Definition: PolicyVersion.h:93
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:37
const Aws::Utils::DateTime & GetCreateDate() const
Definition: PolicyVersion.h:98
void SetVersionId(const char *value)
Definition: PolicyVersion.h:63
PolicyVersion & WithVersionId(const char *value)
Definition: PolicyVersion.h:78
void SetCreateDate(const Aws::Utils::DateTime &value)
PolicyVersion & WithCreateDate(const Aws::Utils::DateTime &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetCreateDate(Aws::Utils::DateTime &&value)
JSON (JavaScript Object Notation).