AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PolicyVersion.h
1
6#pragma once
7#include <aws/iam/IAM_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace IAM
23{
24namespace Model
25{
26
40 {
41 public:
42 AWS_IAM_API PolicyVersion();
43 AWS_IAM_API PolicyVersion(const Aws::Utils::Xml::XmlNode& xmlNode);
44 AWS_IAM_API PolicyVersion& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
45
46 AWS_IAM_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
47 AWS_IAM_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
48
49
51
63 inline const Aws::String& GetDocument() const{ return m_document; }
64 inline bool DocumentHasBeenSet() const { return m_documentHasBeenSet; }
65 inline void SetDocument(const Aws::String& value) { m_documentHasBeenSet = true; m_document = value; }
66 inline void SetDocument(Aws::String&& value) { m_documentHasBeenSet = true; m_document = std::move(value); }
67 inline void SetDocument(const char* value) { m_documentHasBeenSet = true; m_document.assign(value); }
68 inline PolicyVersion& WithDocument(const Aws::String& value) { SetDocument(value); return *this;}
69 inline PolicyVersion& WithDocument(Aws::String&& value) { SetDocument(std::move(value)); return *this;}
70 inline PolicyVersion& WithDocument(const char* value) { SetDocument(value); return *this;}
72
74
79 inline const Aws::String& GetVersionId() const{ return m_versionId; }
80 inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; }
81 inline void SetVersionId(const Aws::String& value) { m_versionIdHasBeenSet = true; m_versionId = value; }
82 inline void SetVersionId(Aws::String&& value) { m_versionIdHasBeenSet = true; m_versionId = std::move(value); }
83 inline void SetVersionId(const char* value) { m_versionIdHasBeenSet = true; m_versionId.assign(value); }
84 inline PolicyVersion& WithVersionId(const Aws::String& value) { SetVersionId(value); return *this;}
85 inline PolicyVersion& WithVersionId(Aws::String&& value) { SetVersionId(std::move(value)); return *this;}
86 inline PolicyVersion& WithVersionId(const char* value) { SetVersionId(value); return *this;}
88
90
94 inline bool GetIsDefaultVersion() const{ return m_isDefaultVersion; }
95 inline bool IsDefaultVersionHasBeenSet() const { return m_isDefaultVersionHasBeenSet; }
96 inline void SetIsDefaultVersion(bool value) { m_isDefaultVersionHasBeenSet = true; m_isDefaultVersion = value; }
97 inline PolicyVersion& WithIsDefaultVersion(bool value) { SetIsDefaultVersion(value); return *this;}
99
101
105 inline const Aws::Utils::DateTime& GetCreateDate() const{ return m_createDate; }
106 inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; }
107 inline void SetCreateDate(const Aws::Utils::DateTime& value) { m_createDateHasBeenSet = true; m_createDate = value; }
108 inline void SetCreateDate(Aws::Utils::DateTime&& value) { m_createDateHasBeenSet = true; m_createDate = std::move(value); }
109 inline PolicyVersion& WithCreateDate(const Aws::Utils::DateTime& value) { SetCreateDate(value); return *this;}
110 inline PolicyVersion& WithCreateDate(Aws::Utils::DateTime&& value) { SetCreateDate(std::move(value)); return *this;}
112 private:
113
114 Aws::String m_document;
115 bool m_documentHasBeenSet = false;
116
117 Aws::String m_versionId;
118 bool m_versionIdHasBeenSet = false;
119
120 bool m_isDefaultVersion;
121 bool m_isDefaultVersionHasBeenSet = false;
122
123 Aws::Utils::DateTime m_createDate;
124 bool m_createDateHasBeenSet = false;
125 };
126
127} // namespace Model
128} // namespace IAM
129} // namespace Aws
void SetVersionId(const Aws::String &value)
PolicyVersion & WithVersionId(const char *value)
AWS_IAM_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetDocument(Aws::String &&value)
PolicyVersion & WithIsDefaultVersion(bool value)
PolicyVersion & WithCreateDate(Aws::Utils::DateTime &&value)
PolicyVersion & WithCreateDate(const Aws::Utils::DateTime &value)
void SetCreateDate(const Aws::Utils::DateTime &value)
void SetDocument(const char *value)
const Aws::Utils::DateTime & GetCreateDate() const
void SetDocument(const Aws::String &value)
AWS_IAM_API PolicyVersion(const Aws::Utils::Xml::XmlNode &xmlNode)
PolicyVersion & WithDocument(const Aws::String &value)
PolicyVersion & WithVersionId(const Aws::String &value)
void SetIsDefaultVersion(bool value)
void SetVersionId(Aws::String &&value)
void SetVersionId(const char *value)
PolicyVersion & WithVersionId(Aws::String &&value)
PolicyVersion & WithDocument(Aws::String &&value)
void SetCreateDate(Aws::Utils::DateTime &&value)
PolicyVersion & WithDocument(const char *value)
AWS_IAM_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::String & GetDocument() const
AWS_IAM_API PolicyVersion & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetVersionId() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream