AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ProjectPolicy.h
1
6#pragma once
7#include <aws/rekognition/Rekognition_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Rekognition
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_REKOGNITION_API ProjectPolicy();
37 AWS_REKOGNITION_API ProjectPolicy(Aws::Utils::Json::JsonView jsonValue);
38 AWS_REKOGNITION_API ProjectPolicy& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::String& GetProjectArn() const{ return m_projectArn; }
48 inline bool ProjectArnHasBeenSet() const { return m_projectArnHasBeenSet; }
49 inline void SetProjectArn(const Aws::String& value) { m_projectArnHasBeenSet = true; m_projectArn = value; }
50 inline void SetProjectArn(Aws::String&& value) { m_projectArnHasBeenSet = true; m_projectArn = std::move(value); }
51 inline void SetProjectArn(const char* value) { m_projectArnHasBeenSet = true; m_projectArn.assign(value); }
52 inline ProjectPolicy& WithProjectArn(const Aws::String& value) { SetProjectArn(value); return *this;}
53 inline ProjectPolicy& WithProjectArn(Aws::String&& value) { SetProjectArn(std::move(value)); return *this;}
54 inline ProjectPolicy& WithProjectArn(const char* value) { SetProjectArn(value); return *this;}
56
58
61 inline const Aws::String& GetPolicyName() const{ return m_policyName; }
62 inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; }
63 inline void SetPolicyName(const Aws::String& value) { m_policyNameHasBeenSet = true; m_policyName = value; }
64 inline void SetPolicyName(Aws::String&& value) { m_policyNameHasBeenSet = true; m_policyName = std::move(value); }
65 inline void SetPolicyName(const char* value) { m_policyNameHasBeenSet = true; m_policyName.assign(value); }
66 inline ProjectPolicy& WithPolicyName(const Aws::String& value) { SetPolicyName(value); return *this;}
67 inline ProjectPolicy& WithPolicyName(Aws::String&& value) { SetPolicyName(std::move(value)); return *this;}
68 inline ProjectPolicy& WithPolicyName(const char* value) { SetPolicyName(value); return *this;}
70
72
75 inline const Aws::String& GetPolicyRevisionId() const{ return m_policyRevisionId; }
76 inline bool PolicyRevisionIdHasBeenSet() const { return m_policyRevisionIdHasBeenSet; }
77 inline void SetPolicyRevisionId(const Aws::String& value) { m_policyRevisionIdHasBeenSet = true; m_policyRevisionId = value; }
78 inline void SetPolicyRevisionId(Aws::String&& value) { m_policyRevisionIdHasBeenSet = true; m_policyRevisionId = std::move(value); }
79 inline void SetPolicyRevisionId(const char* value) { m_policyRevisionIdHasBeenSet = true; m_policyRevisionId.assign(value); }
80 inline ProjectPolicy& WithPolicyRevisionId(const Aws::String& value) { SetPolicyRevisionId(value); return *this;}
81 inline ProjectPolicy& WithPolicyRevisionId(Aws::String&& value) { SetPolicyRevisionId(std::move(value)); return *this;}
82 inline ProjectPolicy& WithPolicyRevisionId(const char* value) { SetPolicyRevisionId(value); return *this;}
84
86
89 inline const Aws::String& GetPolicyDocument() const{ return m_policyDocument; }
90 inline bool PolicyDocumentHasBeenSet() const { return m_policyDocumentHasBeenSet; }
91 inline void SetPolicyDocument(const Aws::String& value) { m_policyDocumentHasBeenSet = true; m_policyDocument = value; }
92 inline void SetPolicyDocument(Aws::String&& value) { m_policyDocumentHasBeenSet = true; m_policyDocument = std::move(value); }
93 inline void SetPolicyDocument(const char* value) { m_policyDocumentHasBeenSet = true; m_policyDocument.assign(value); }
94 inline ProjectPolicy& WithPolicyDocument(const Aws::String& value) { SetPolicyDocument(value); return *this;}
95 inline ProjectPolicy& WithPolicyDocument(Aws::String&& value) { SetPolicyDocument(std::move(value)); return *this;}
96 inline ProjectPolicy& WithPolicyDocument(const char* value) { SetPolicyDocument(value); return *this;}
98
100
103 inline const Aws::Utils::DateTime& GetCreationTimestamp() const{ return m_creationTimestamp; }
104 inline bool CreationTimestampHasBeenSet() const { return m_creationTimestampHasBeenSet; }
105 inline void SetCreationTimestamp(const Aws::Utils::DateTime& value) { m_creationTimestampHasBeenSet = true; m_creationTimestamp = value; }
106 inline void SetCreationTimestamp(Aws::Utils::DateTime&& value) { m_creationTimestampHasBeenSet = true; m_creationTimestamp = std::move(value); }
108 inline ProjectPolicy& WithCreationTimestamp(Aws::Utils::DateTime&& value) { SetCreationTimestamp(std::move(value)); return *this;}
110
112
115 inline const Aws::Utils::DateTime& GetLastUpdatedTimestamp() const{ return m_lastUpdatedTimestamp; }
116 inline bool LastUpdatedTimestampHasBeenSet() const { return m_lastUpdatedTimestampHasBeenSet; }
117 inline void SetLastUpdatedTimestamp(const Aws::Utils::DateTime& value) { m_lastUpdatedTimestampHasBeenSet = true; m_lastUpdatedTimestamp = value; }
118 inline void SetLastUpdatedTimestamp(Aws::Utils::DateTime&& value) { m_lastUpdatedTimestampHasBeenSet = true; m_lastUpdatedTimestamp = std::move(value); }
120 inline ProjectPolicy& WithLastUpdatedTimestamp(Aws::Utils::DateTime&& value) { SetLastUpdatedTimestamp(std::move(value)); return *this;}
122 private:
123
124 Aws::String m_projectArn;
125 bool m_projectArnHasBeenSet = false;
126
127 Aws::String m_policyName;
128 bool m_policyNameHasBeenSet = false;
129
130 Aws::String m_policyRevisionId;
131 bool m_policyRevisionIdHasBeenSet = false;
132
133 Aws::String m_policyDocument;
134 bool m_policyDocumentHasBeenSet = false;
135
136 Aws::Utils::DateTime m_creationTimestamp;
137 bool m_creationTimestampHasBeenSet = false;
138
139 Aws::Utils::DateTime m_lastUpdatedTimestamp;
140 bool m_lastUpdatedTimestampHasBeenSet = false;
141 };
142
143} // namespace Model
144} // namespace Rekognition
145} // namespace Aws
void SetLastUpdatedTimestamp(const Aws::Utils::DateTime &value)
AWS_REKOGNITION_API ProjectPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetProjectArn() const
AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetPolicyRevisionId() const
ProjectPolicy & WithPolicyRevisionId(const char *value)
void SetCreationTimestamp(Aws::Utils::DateTime &&value)
ProjectPolicy & WithProjectArn(const char *value)
void SetPolicyName(const Aws::String &value)
ProjectPolicy & WithPolicyName(Aws::String &&value)
ProjectPolicy & WithPolicyName(const Aws::String &value)
void SetProjectArn(const Aws::String &value)
void SetPolicyName(Aws::String &&value)
const Aws::Utils::DateTime & GetLastUpdatedTimestamp() const
void SetCreationTimestamp(const Aws::Utils::DateTime &value)
ProjectPolicy & WithLastUpdatedTimestamp(Aws::Utils::DateTime &&value)
void SetPolicyDocument(const char *value)
void SetPolicyRevisionId(const char *value)
const Aws::Utils::DateTime & GetCreationTimestamp() const
ProjectPolicy & WithCreationTimestamp(const Aws::Utils::DateTime &value)
void SetPolicyName(const char *value)
ProjectPolicy & WithPolicyRevisionId(Aws::String &&value)
ProjectPolicy & WithPolicyDocument(const char *value)
ProjectPolicy & WithPolicyDocument(Aws::String &&value)
void SetLastUpdatedTimestamp(Aws::Utils::DateTime &&value)
void SetPolicyRevisionId(const Aws::String &value)
ProjectPolicy & WithProjectArn(const Aws::String &value)
ProjectPolicy & WithPolicyDocument(const Aws::String &value)
void SetPolicyRevisionId(Aws::String &&value)
ProjectPolicy & WithCreationTimestamp(Aws::Utils::DateTime &&value)
ProjectPolicy & WithProjectArn(Aws::String &&value)
const Aws::String & GetPolicyName() const
void SetProjectArn(const char *value)
ProjectPolicy & WithLastUpdatedTimestamp(const Aws::Utils::DateTime &value)
void SetPolicyDocument(const Aws::String &value)
ProjectPolicy & WithPolicyName(const char *value)
void SetProjectArn(Aws::String &&value)
ProjectPolicy & WithPolicyRevisionId(const Aws::String &value)
AWS_REKOGNITION_API ProjectPolicy(Aws::Utils::Json::JsonView jsonValue)
void SetPolicyDocument(Aws::String &&value)
const Aws::String & GetPolicyDocument() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue