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/iam/IAM_EXPORTS.h>
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Xml
26 {
27  class XmlNode;
28 } // namespace Xml
29 } // namespace Utils
30 namespace IAM
31 {
32 namespace Model
33 {
34 
45  {
46  public:
47  PolicyVersion();
49  PolicyVersion& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
50 
51  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
52  void OutputToStream(Aws::OStream& oStream, const char* location) const;
53 
60  inline const Aws::String& GetDocument() const{ return m_document; }
61 
68  inline void SetDocument(const Aws::String& value) { m_documentHasBeenSet = true; m_document = value; }
69 
76  inline void SetDocument(Aws::String&& value) { m_documentHasBeenSet = true; m_document = value; }
77 
84  inline void SetDocument(const char* value) { m_documentHasBeenSet = true; m_document.assign(value); }
85 
92  inline PolicyVersion& WithDocument(const Aws::String& value) { SetDocument(value); return *this;}
93 
100  inline PolicyVersion& WithDocument(Aws::String&& value) { SetDocument(value); return *this;}
101 
108  inline PolicyVersion& WithDocument(const char* value) { SetDocument(value); return *this;}
109 
115  inline const Aws::String& GetVersionId() const{ return m_versionId; }
116 
122  inline void SetVersionId(const Aws::String& value) { m_versionIdHasBeenSet = true; m_versionId = value; }
123 
129  inline void SetVersionId(Aws::String&& value) { m_versionIdHasBeenSet = true; m_versionId = value; }
130 
136  inline void SetVersionId(const char* value) { m_versionIdHasBeenSet = true; m_versionId.assign(value); }
137 
143  inline PolicyVersion& WithVersionId(const Aws::String& value) { SetVersionId(value); return *this;}
144 
150  inline PolicyVersion& WithVersionId(Aws::String&& value) { SetVersionId(value); return *this;}
151 
157  inline PolicyVersion& WithVersionId(const char* value) { SetVersionId(value); return *this;}
158 
163  inline bool GetIsDefaultVersion() const{ return m_isDefaultVersion; }
164 
169  inline void SetIsDefaultVersion(bool value) { m_isDefaultVersionHasBeenSet = true; m_isDefaultVersion = value; }
170 
175  inline PolicyVersion& WithIsDefaultVersion(bool value) { SetIsDefaultVersion(value); return *this;}
176 
181  inline const Aws::Utils::DateTime& GetCreateDate() const{ return m_createDate; }
182 
187  inline void SetCreateDate(const Aws::Utils::DateTime& value) { m_createDateHasBeenSet = true; m_createDate = value; }
188 
193  inline void SetCreateDate(Aws::Utils::DateTime&& value) { m_createDateHasBeenSet = true; m_createDate = value; }
194 
199  inline PolicyVersion& WithCreateDate(const Aws::Utils::DateTime& value) { SetCreateDate(value); return *this;}
200 
205  inline PolicyVersion& WithCreateDate(Aws::Utils::DateTime&& value) { SetCreateDate(value); return *this;}
206 
207  private:
208  Aws::String m_document;
209  bool m_documentHasBeenSet;
210  Aws::String m_versionId;
211  bool m_versionIdHasBeenSet;
212  bool m_isDefaultVersion;
213  bool m_isDefaultVersionHasBeenSet;
214  Aws::Utils::DateTime m_createDate;
215  bool m_createDateHasBeenSet;
216  };
217 
218 } // namespace Model
219 } // namespace IAM
220 } // namespace Aws
void SetDocument(const char *value)
Definition: PolicyVersion.h:84
const Aws::String & GetDocument() const
Definition: PolicyVersion.h:60
PolicyVersion & WithIsDefaultVersion(bool value)
void SetIsDefaultVersion(bool value)
PolicyVersion & WithCreateDate(Aws::Utils::DateTime &&value)
void SetCreateDate(Aws::Utils::DateTime &&value)
PolicyVersion & WithVersionId(const Aws::String &value)
void SetCreateDate(const Aws::Utils::DateTime &value)
void SetVersionId(const char *value)
void SetDocument(const Aws::String &value)
Definition: PolicyVersion.h:68
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
void SetDocument(Aws::String &&value)
Definition: PolicyVersion.h:76
PolicyVersion & WithCreateDate(const Aws::Utils::DateTime &value)
void SetVersionId(const Aws::String &value)
PolicyVersion & WithDocument(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
PolicyVersion & WithDocument(Aws::String &&value)
const Aws::String & GetVersionId() const
PolicyVersion & WithDocument(const Aws::String &value)
Definition: PolicyVersion.h:92
#define AWS_IAM_API
Definition: IAM_EXPORTS.h:37
PolicyVersion & WithVersionId(const char *value)
void SetVersionId(Aws::String &&value)
JSON (JavaScript Object Notation).
PolicyVersion & WithVersionId(Aws::String &&value)
const Aws::Utils::DateTime & GetCreateDate() const