AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
PolicyGeneration.h
1
6#pragma once
7#include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/accessanalyzer/model/JobStatus.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace AccessAnalyzer
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_ACCESSANALYZER_API PolicyGeneration() = default;
38 AWS_ACCESSANALYZER_API PolicyGeneration(Aws::Utils::Json::JsonView jsonValue);
39 AWS_ACCESSANALYZER_API PolicyGeneration& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
51 inline const Aws::String& GetJobId() const { return m_jobId; }
52 inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
53 template<typename JobIdT = Aws::String>
54 void SetJobId(JobIdT&& value) { m_jobIdHasBeenSet = true; m_jobId = std::forward<JobIdT>(value); }
55 template<typename JobIdT = Aws::String>
56 PolicyGeneration& WithJobId(JobIdT&& value) { SetJobId(std::forward<JobIdT>(value)); return *this;}
58
60
64 inline const Aws::String& GetPrincipalArn() const { return m_principalArn; }
65 inline bool PrincipalArnHasBeenSet() const { return m_principalArnHasBeenSet; }
66 template<typename PrincipalArnT = Aws::String>
67 void SetPrincipalArn(PrincipalArnT&& value) { m_principalArnHasBeenSet = true; m_principalArn = std::forward<PrincipalArnT>(value); }
68 template<typename PrincipalArnT = Aws::String>
69 PolicyGeneration& WithPrincipalArn(PrincipalArnT&& value) { SetPrincipalArn(std::forward<PrincipalArnT>(value)); return *this;}
71
73
76 inline JobStatus GetStatus() const { return m_status; }
77 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
78 inline void SetStatus(JobStatus value) { m_statusHasBeenSet = true; m_status = value; }
79 inline PolicyGeneration& WithStatus(JobStatus value) { SetStatus(value); return *this;}
81
83
86 inline const Aws::Utils::DateTime& GetStartedOn() const { return m_startedOn; }
87 inline bool StartedOnHasBeenSet() const { return m_startedOnHasBeenSet; }
88 template<typename StartedOnT = Aws::Utils::DateTime>
89 void SetStartedOn(StartedOnT&& value) { m_startedOnHasBeenSet = true; m_startedOn = std::forward<StartedOnT>(value); }
90 template<typename StartedOnT = Aws::Utils::DateTime>
91 PolicyGeneration& WithStartedOn(StartedOnT&& value) { SetStartedOn(std::forward<StartedOnT>(value)); return *this;}
93
95
98 inline const Aws::Utils::DateTime& GetCompletedOn() const { return m_completedOn; }
99 inline bool CompletedOnHasBeenSet() const { return m_completedOnHasBeenSet; }
100 template<typename CompletedOnT = Aws::Utils::DateTime>
101 void SetCompletedOn(CompletedOnT&& value) { m_completedOnHasBeenSet = true; m_completedOn = std::forward<CompletedOnT>(value); }
102 template<typename CompletedOnT = Aws::Utils::DateTime>
103 PolicyGeneration& WithCompletedOn(CompletedOnT&& value) { SetCompletedOn(std::forward<CompletedOnT>(value)); return *this;}
105 private:
106
107 Aws::String m_jobId;
108 bool m_jobIdHasBeenSet = false;
109
110 Aws::String m_principalArn;
111 bool m_principalArnHasBeenSet = false;
112
114 bool m_statusHasBeenSet = false;
115
116 Aws::Utils::DateTime m_startedOn{};
117 bool m_startedOnHasBeenSet = false;
118
119 Aws::Utils::DateTime m_completedOn{};
120 bool m_completedOnHasBeenSet = false;
121 };
122
123} // namespace Model
124} // namespace AccessAnalyzer
125} // namespace Aws
PolicyGeneration & WithJobId(JobIdT &&value)
const Aws::Utils::DateTime & GetCompletedOn() const
AWS_ACCESSANALYZER_API PolicyGeneration & operator=(Aws::Utils::Json::JsonView jsonValue)
PolicyGeneration & WithStatus(JobStatus value)
AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetStartedOn() const
PolicyGeneration & WithStartedOn(StartedOnT &&value)
PolicyGeneration & WithCompletedOn(CompletedOnT &&value)
AWS_ACCESSANALYZER_API PolicyGeneration(Aws::Utils::Json::JsonView jsonValue)
AWS_ACCESSANALYZER_API PolicyGeneration()=default
PolicyGeneration & WithPrincipalArn(PrincipalArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue