AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
JobEntityIdentifiersUnion.h
1
6#pragma once
7#include <aws/deadline/Deadline_EXPORTS.h>
8#include <aws/deadline/model/EnvironmentDetailsIdentifiers.h>
9#include <aws/deadline/model/JobAttachmentDetailsIdentifiers.h>
10#include <aws/deadline/model/JobDetailsIdentifiers.h>
11#include <aws/deadline/model/StepDetailsIdentifiers.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace deadline {
23namespace Model {
24
31 public:
32 AWS_DEADLINE_API JobEntityIdentifiersUnion() = default;
35 AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const JobDetailsIdentifiers& GetJobDetails() const { return m_jobDetails; }
42 inline bool JobDetailsHasBeenSet() const { return m_jobDetailsHasBeenSet; }
43 template <typename JobDetailsT = JobDetailsIdentifiers>
44 void SetJobDetails(JobDetailsT&& value) {
45 m_jobDetailsHasBeenSet = true;
46 m_jobDetails = std::forward<JobDetailsT>(value);
47 }
48 template <typename JobDetailsT = JobDetailsIdentifiers>
50 SetJobDetails(std::forward<JobDetailsT>(value));
51 return *this;
52 }
54
56
59 inline const JobAttachmentDetailsIdentifiers& GetJobAttachmentDetails() const { return m_jobAttachmentDetails; }
60 inline bool JobAttachmentDetailsHasBeenSet() const { return m_jobAttachmentDetailsHasBeenSet; }
61 template <typename JobAttachmentDetailsT = JobAttachmentDetailsIdentifiers>
62 void SetJobAttachmentDetails(JobAttachmentDetailsT&& value) {
63 m_jobAttachmentDetailsHasBeenSet = true;
64 m_jobAttachmentDetails = std::forward<JobAttachmentDetailsT>(value);
65 }
66 template <typename JobAttachmentDetailsT = JobAttachmentDetailsIdentifiers>
67 JobEntityIdentifiersUnion& WithJobAttachmentDetails(JobAttachmentDetailsT&& value) {
68 SetJobAttachmentDetails(std::forward<JobAttachmentDetailsT>(value));
69 return *this;
70 }
72
74
77 inline const StepDetailsIdentifiers& GetStepDetails() const { return m_stepDetails; }
78 inline bool StepDetailsHasBeenSet() const { return m_stepDetailsHasBeenSet; }
79 template <typename StepDetailsT = StepDetailsIdentifiers>
80 void SetStepDetails(StepDetailsT&& value) {
81 m_stepDetailsHasBeenSet = true;
82 m_stepDetails = std::forward<StepDetailsT>(value);
83 }
84 template <typename StepDetailsT = StepDetailsIdentifiers>
86 SetStepDetails(std::forward<StepDetailsT>(value));
87 return *this;
88 }
90
92
95 inline const EnvironmentDetailsIdentifiers& GetEnvironmentDetails() const { return m_environmentDetails; }
96 inline bool EnvironmentDetailsHasBeenSet() const { return m_environmentDetailsHasBeenSet; }
97 template <typename EnvironmentDetailsT = EnvironmentDetailsIdentifiers>
98 void SetEnvironmentDetails(EnvironmentDetailsT&& value) {
99 m_environmentDetailsHasBeenSet = true;
100 m_environmentDetails = std::forward<EnvironmentDetailsT>(value);
101 }
102 template <typename EnvironmentDetailsT = EnvironmentDetailsIdentifiers>
103 JobEntityIdentifiersUnion& WithEnvironmentDetails(EnvironmentDetailsT&& value) {
104 SetEnvironmentDetails(std::forward<EnvironmentDetailsT>(value));
105 return *this;
106 }
108 private:
109 JobDetailsIdentifiers m_jobDetails;
110
111 JobAttachmentDetailsIdentifiers m_jobAttachmentDetails;
112
113 StepDetailsIdentifiers m_stepDetails;
114
115 EnvironmentDetailsIdentifiers m_environmentDetails;
116 bool m_jobDetailsHasBeenSet = false;
117 bool m_jobAttachmentDetailsHasBeenSet = false;
118 bool m_stepDetailsHasBeenSet = false;
119 bool m_environmentDetailsHasBeenSet = false;
120};
121
122} // namespace Model
123} // namespace deadline
124} // namespace Aws
const JobDetailsIdentifiers & GetJobDetails() const
const StepDetailsIdentifiers & GetStepDetails() const
const EnvironmentDetailsIdentifiers & GetEnvironmentDetails() const
AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetJobAttachmentDetails(JobAttachmentDetailsT &&value)
const JobAttachmentDetailsIdentifiers & GetJobAttachmentDetails() const
AWS_DEADLINE_API JobEntityIdentifiersUnion & operator=(Aws::Utils::Json::JsonView jsonValue)
JobEntityIdentifiersUnion & WithStepDetails(StepDetailsT &&value)
AWS_DEADLINE_API JobEntityIdentifiersUnion(Aws::Utils::Json::JsonView jsonValue)
JobEntityIdentifiersUnion & WithEnvironmentDetails(EnvironmentDetailsT &&value)
AWS_DEADLINE_API JobEntityIdentifiersUnion()=default
JobEntityIdentifiersUnion & WithJobDetails(JobDetailsT &&value)
JobEntityIdentifiersUnion & WithJobAttachmentDetails(JobAttachmentDetailsT &&value)
Aws::Utils::Json::JsonValue JsonValue