AWS SDK for C++  1.9.17
AWS SDK for C++
PolicyDetails.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/dlm/DLM_EXPORTS.h>
14 #include <aws/dlm/model/Tag.h>
15 #include <aws/dlm/model/Schedule.h>
16 #include <aws/dlm/model/Action.h>
17 #include <utility>
18 
19 namespace Aws
20 {
21 namespace Utils
22 {
23 namespace Json
24 {
25  class JsonValue;
26  class JsonView;
27 } // namespace Json
28 } // namespace Utils
29 namespace DLM
30 {
31 namespace Model
32 {
33 
41  {
42  public:
47 
48 
58  inline const PolicyTypeValues& GetPolicyType() const{ return m_policyType; }
59 
69  inline bool PolicyTypeHasBeenSet() const { return m_policyTypeHasBeenSet; }
70 
80  inline void SetPolicyType(const PolicyTypeValues& value) { m_policyTypeHasBeenSet = true; m_policyType = value; }
81 
91  inline void SetPolicyType(PolicyTypeValues&& value) { m_policyTypeHasBeenSet = true; m_policyType = std::move(value); }
92 
102  inline PolicyDetails& WithPolicyType(const PolicyTypeValues& value) { SetPolicyType(value); return *this;}
103 
113  inline PolicyDetails& WithPolicyType(PolicyTypeValues&& value) { SetPolicyType(std::move(value)); return *this;}
114 
115 
123  inline const Aws::Vector<ResourceTypeValues>& GetResourceTypes() const{ return m_resourceTypes; }
124 
132  inline bool ResourceTypesHasBeenSet() const { return m_resourceTypesHasBeenSet; }
133 
141  inline void SetResourceTypes(const Aws::Vector<ResourceTypeValues>& value) { m_resourceTypesHasBeenSet = true; m_resourceTypes = value; }
142 
150  inline void SetResourceTypes(Aws::Vector<ResourceTypeValues>&& value) { m_resourceTypesHasBeenSet = true; m_resourceTypes = std::move(value); }
151 
159  inline PolicyDetails& WithResourceTypes(const Aws::Vector<ResourceTypeValues>& value) { SetResourceTypes(value); return *this;}
160 
168  inline PolicyDetails& WithResourceTypes(Aws::Vector<ResourceTypeValues>&& value) { SetResourceTypes(std::move(value)); return *this;}
169 
177  inline PolicyDetails& AddResourceTypes(const ResourceTypeValues& value) { m_resourceTypesHasBeenSet = true; m_resourceTypes.push_back(value); return *this; }
178 
186  inline PolicyDetails& AddResourceTypes(ResourceTypeValues&& value) { m_resourceTypesHasBeenSet = true; m_resourceTypes.push_back(std::move(value)); return *this; }
187 
188 
197  inline const Aws::Vector<ResourceLocationValues>& GetResourceLocations() const{ return m_resourceLocations; }
198 
207  inline bool ResourceLocationsHasBeenSet() const { return m_resourceLocationsHasBeenSet; }
208 
217  inline void SetResourceLocations(const Aws::Vector<ResourceLocationValues>& value) { m_resourceLocationsHasBeenSet = true; m_resourceLocations = value; }
218 
227  inline void SetResourceLocations(Aws::Vector<ResourceLocationValues>&& value) { m_resourceLocationsHasBeenSet = true; m_resourceLocations = std::move(value); }
228 
237  inline PolicyDetails& WithResourceLocations(const Aws::Vector<ResourceLocationValues>& value) { SetResourceLocations(value); return *this;}
238 
247  inline PolicyDetails& WithResourceLocations(Aws::Vector<ResourceLocationValues>&& value) { SetResourceLocations(std::move(value)); return *this;}
248 
257  inline PolicyDetails& AddResourceLocations(const ResourceLocationValues& value) { m_resourceLocationsHasBeenSet = true; m_resourceLocations.push_back(value); return *this; }
258 
267  inline PolicyDetails& AddResourceLocations(ResourceLocationValues&& value) { m_resourceLocationsHasBeenSet = true; m_resourceLocations.push_back(std::move(value)); return *this; }
268 
269 
275  inline const Aws::Vector<Tag>& GetTargetTags() const{ return m_targetTags; }
276 
282  inline bool TargetTagsHasBeenSet() const { return m_targetTagsHasBeenSet; }
283 
289  inline void SetTargetTags(const Aws::Vector<Tag>& value) { m_targetTagsHasBeenSet = true; m_targetTags = value; }
290 
296  inline void SetTargetTags(Aws::Vector<Tag>&& value) { m_targetTagsHasBeenSet = true; m_targetTags = std::move(value); }
297 
303  inline PolicyDetails& WithTargetTags(const Aws::Vector<Tag>& value) { SetTargetTags(value); return *this;}
304 
310  inline PolicyDetails& WithTargetTags(Aws::Vector<Tag>&& value) { SetTargetTags(std::move(value)); return *this;}
311 
317  inline PolicyDetails& AddTargetTags(const Tag& value) { m_targetTagsHasBeenSet = true; m_targetTags.push_back(value); return *this; }
318 
324  inline PolicyDetails& AddTargetTags(Tag&& value) { m_targetTagsHasBeenSet = true; m_targetTags.push_back(std::move(value)); return *this; }
325 
326 
334  inline const Aws::Vector<Schedule>& GetSchedules() const{ return m_schedules; }
335 
343  inline bool SchedulesHasBeenSet() const { return m_schedulesHasBeenSet; }
344 
352  inline void SetSchedules(const Aws::Vector<Schedule>& value) { m_schedulesHasBeenSet = true; m_schedules = value; }
353 
361  inline void SetSchedules(Aws::Vector<Schedule>&& value) { m_schedulesHasBeenSet = true; m_schedules = std::move(value); }
362 
370  inline PolicyDetails& WithSchedules(const Aws::Vector<Schedule>& value) { SetSchedules(value); return *this;}
371 
379  inline PolicyDetails& WithSchedules(Aws::Vector<Schedule>&& value) { SetSchedules(std::move(value)); return *this;}
380 
388  inline PolicyDetails& AddSchedules(const Schedule& value) { m_schedulesHasBeenSet = true; m_schedules.push_back(value); return *this; }
389 
397  inline PolicyDetails& AddSchedules(Schedule&& value) { m_schedulesHasBeenSet = true; m_schedules.push_back(std::move(value)); return *this; }
398 
399 
405  inline const Parameters& GetParameters() const{ return m_parameters; }
406 
412  inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
413 
419  inline void SetParameters(const Parameters& value) { m_parametersHasBeenSet = true; m_parameters = value; }
420 
426  inline void SetParameters(Parameters&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); }
427 
433  inline PolicyDetails& WithParameters(const Parameters& value) { SetParameters(value); return *this;}
434 
440  inline PolicyDetails& WithParameters(Parameters&& value) { SetParameters(std::move(value)); return *this;}
441 
442 
448  inline const EventSource& GetEventSource() const{ return m_eventSource; }
449 
455  inline bool EventSourceHasBeenSet() const { return m_eventSourceHasBeenSet; }
456 
462  inline void SetEventSource(const EventSource& value) { m_eventSourceHasBeenSet = true; m_eventSource = value; }
463 
469  inline void SetEventSource(EventSource&& value) { m_eventSourceHasBeenSet = true; m_eventSource = std::move(value); }
470 
476  inline PolicyDetails& WithEventSource(const EventSource& value) { SetEventSource(value); return *this;}
477 
483  inline PolicyDetails& WithEventSource(EventSource&& value) { SetEventSource(std::move(value)); return *this;}
484 
485 
492  inline const Aws::Vector<Action>& GetActions() const{ return m_actions; }
493 
500  inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
501 
508  inline void SetActions(const Aws::Vector<Action>& value) { m_actionsHasBeenSet = true; m_actions = value; }
509 
516  inline void SetActions(Aws::Vector<Action>&& value) { m_actionsHasBeenSet = true; m_actions = std::move(value); }
517 
524  inline PolicyDetails& WithActions(const Aws::Vector<Action>& value) { SetActions(value); return *this;}
525 
532  inline PolicyDetails& WithActions(Aws::Vector<Action>&& value) { SetActions(std::move(value)); return *this;}
533 
540  inline PolicyDetails& AddActions(const Action& value) { m_actionsHasBeenSet = true; m_actions.push_back(value); return *this; }
541 
548  inline PolicyDetails& AddActions(Action&& value) { m_actionsHasBeenSet = true; m_actions.push_back(std::move(value)); return *this; }
549 
550  private:
551 
552  PolicyTypeValues m_policyType;
553  bool m_policyTypeHasBeenSet;
554 
555  Aws::Vector<ResourceTypeValues> m_resourceTypes;
556  bool m_resourceTypesHasBeenSet;
557 
558  Aws::Vector<ResourceLocationValues> m_resourceLocations;
559  bool m_resourceLocationsHasBeenSet;
560 
561  Aws::Vector<Tag> m_targetTags;
562  bool m_targetTagsHasBeenSet;
563 
564  Aws::Vector<Schedule> m_schedules;
565  bool m_schedulesHasBeenSet;
566 
567  Parameters m_parameters;
568  bool m_parametersHasBeenSet;
569 
570  EventSource m_eventSource;
571  bool m_eventSourceHasBeenSet;
572 
573  Aws::Vector<Action> m_actions;
574  bool m_actionsHasBeenSet;
575  };
576 
577 } // namespace Model
578 } // namespace DLM
579 } // namespace Aws
Aws::DLM::Model::PolicyDetails::EventSourceHasBeenSet
bool EventSourceHasBeenSet() const
Definition: PolicyDetails.h:455
DLM_EXPORTS.h
Aws::DLM::Model::PolicyDetails::SetPolicyType
void SetPolicyType(const PolicyTypeValues &value)
Definition: PolicyDetails.h:80
Aws::DLM::Model::EventSource
Definition: EventSource.h:34
Aws::DLM::Model::PolicyDetails::WithPolicyType
PolicyDetails & WithPolicyType(const PolicyTypeValues &value)
Definition: PolicyDetails.h:102
ResourceLocationValues.h
Aws::DLM::Model::PolicyDetails::WithActions
PolicyDetails & WithActions(const Aws::Vector< Action > &value)
Definition: PolicyDetails.h:524
Aws::DLM::Model::PolicyDetails::AddActions
PolicyDetails & AddActions(const Action &value)
Definition: PolicyDetails.h:540
Aws::DLM::Model::PolicyDetails::SetActions
void SetActions(Aws::Vector< Action > &&value)
Definition: PolicyDetails.h:516
Aws::DLM::Model::PolicyDetails::AddSchedules
PolicyDetails & AddSchedules(const Schedule &value)
Definition: PolicyDetails.h:388
Aws::DLM::Model::Action
Definition: Action.h:34
Aws::DLM::Model::PolicyDetails::WithEventSource
PolicyDetails & WithEventSource(EventSource &&value)
Definition: PolicyDetails.h:483
Aws::DLM::Model::Schedule
Definition: Schedule.h:40
Aws::DLM::Model::PolicyDetails::GetParameters
const Parameters & GetParameters() const
Definition: PolicyDetails.h:405
Aws::DLM::Model::PolicyDetails::SetTargetTags
void SetTargetTags(const Aws::Vector< Tag > &value)
Definition: PolicyDetails.h:289
Aws::DLM::Model::PolicyDetails::ResourceLocationsHasBeenSet
bool ResourceLocationsHasBeenSet() const
Definition: PolicyDetails.h:207
Aws::DLM::Model::PolicyDetails::ParametersHasBeenSet
bool ParametersHasBeenSet() const
Definition: PolicyDetails.h:412
Aws::DLM::Model::PolicyDetails::SetSchedules
void SetSchedules(const Aws::Vector< Schedule > &value)
Definition: PolicyDetails.h:352
Aws::DLM::Model::PolicyDetails::WithResourceLocations
PolicyDetails & WithResourceLocations(Aws::Vector< ResourceLocationValues > &&value)
Definition: PolicyDetails.h:247
Aws::DLM::Model::PolicyDetails::WithResourceTypes
PolicyDetails & WithResourceTypes(const Aws::Vector< ResourceTypeValues > &value)
Definition: PolicyDetails.h:159
ResourceTypeValues.h
Aws::DLM::Model::PolicyDetails::SetEventSource
void SetEventSource(const EventSource &value)
Definition: PolicyDetails.h:462
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Tag.h
Aws::DLM::Model::PolicyDetails::operator=
PolicyDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
Parameters.h
Aws::DLM::Model::PolicyDetails::AddTargetTags
PolicyDetails & AddTargetTags(const Tag &value)
Definition: PolicyDetails.h:317
Aws::DLM::Model::PolicyDetails::WithSchedules
PolicyDetails & WithSchedules(const Aws::Vector< Schedule > &value)
Definition: PolicyDetails.h:370
AWSVector.h
Aws::DLM::Model::PolicyDetails::WithParameters
PolicyDetails & WithParameters(const Parameters &value)
Definition: PolicyDetails.h:433
Aws::DLM::Model::PolicyDetails::ResourceTypesHasBeenSet
bool ResourceTypesHasBeenSet() const
Definition: PolicyDetails.h:132
Aws::DLM::Model::PolicyDetails::SetParameters
void SetParameters(Parameters &&value)
Definition: PolicyDetails.h:426
Aws::DLM::Model::PolicyDetails::AddActions
PolicyDetails & AddActions(Action &&value)
Definition: PolicyDetails.h:548
Aws::DLM::Model::PolicyDetails::GetTargetTags
const Aws::Vector< Tag > & GetTargetTags() const
Definition: PolicyDetails.h:275
Aws::DLM::Model::PolicyDetails::ActionsHasBeenSet
bool ActionsHasBeenSet() const
Definition: PolicyDetails.h:500
Aws::DLM::Model::PolicyDetails::AddSchedules
PolicyDetails & AddSchedules(Schedule &&value)
Definition: PolicyDetails.h:397
Aws::DLM::Model::PolicyDetails::PolicyDetails
PolicyDetails()
Aws::DLM::Model::PolicyDetails::GetEventSource
const EventSource & GetEventSource() const
Definition: PolicyDetails.h:448
Aws::DLM::Model::PolicyDetails::SetResourceLocations
void SetResourceLocations(const Aws::Vector< ResourceLocationValues > &value)
Definition: PolicyDetails.h:217
Aws::DLM::Model::Tag
Definition: Tag.h:32
Aws::DLM::Model::PolicyDetails::GetResourceLocations
const Aws::Vector< ResourceLocationValues > & GetResourceLocations() const
Definition: PolicyDetails.h:197
Aws::DLM::Model::PolicyDetails::WithResourceLocations
PolicyDetails & WithResourceLocations(const Aws::Vector< ResourceLocationValues > &value)
Definition: PolicyDetails.h:237
Aws::DLM::Model::PolicyDetails::WithPolicyType
PolicyDetails & WithPolicyType(PolicyTypeValues &&value)
Definition: PolicyDetails.h:113
AWS_DLM_API
#define AWS_DLM_API
Definition: DLM_EXPORTS.h:28
Aws::DLM::Model::PolicyDetails::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::DLM::Model::PolicyDetails::PolicyDetails
PolicyDetails(Aws::Utils::Json::JsonView jsonValue)
Aws::DLM::Model::PolicyDetails::SetResourceTypes
void SetResourceTypes(const Aws::Vector< ResourceTypeValues > &value)
Definition: PolicyDetails.h:141
PolicyTypeValues.h
Action.h
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::DLM::Model::PolicyDetails
Definition: PolicyDetails.h:41
Aws::DLM::Model::PolicyDetails::SchedulesHasBeenSet
bool SchedulesHasBeenSet() const
Definition: PolicyDetails.h:343
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::DLM::Model::PolicyDetails::TargetTagsHasBeenSet
bool TargetTagsHasBeenSet() const
Definition: PolicyDetails.h:282
Aws::DLM::Model::PolicyDetails::GetPolicyType
const PolicyTypeValues & GetPolicyType() const
Definition: PolicyDetails.h:58
Aws::DLM::Model::ResourceLocationValues
ResourceLocationValues
Definition: ResourceLocationValues.h:17
Aws::DLM::Model::PolicyDetails::GetActions
const Aws::Vector< Action > & GetActions() const
Definition: PolicyDetails.h:492
Aws::DLM::Model::PolicyDetails::WithParameters
PolicyDetails & WithParameters(Parameters &&value)
Definition: PolicyDetails.h:440
Aws::DLM::Model::PolicyDetails::AddResourceTypes
PolicyDetails & AddResourceTypes(ResourceTypeValues &&value)
Definition: PolicyDetails.h:186
Schedule.h
Aws::DLM::Model::PolicyDetails::WithActions
PolicyDetails & WithActions(Aws::Vector< Action > &&value)
Definition: PolicyDetails.h:532
Aws::DLM::Model::PolicyDetails::PolicyTypeHasBeenSet
bool PolicyTypeHasBeenSet() const
Definition: PolicyDetails.h:69
Aws::DLM::Model::PolicyDetails::SetActions
void SetActions(const Aws::Vector< Action > &value)
Definition: PolicyDetails.h:508
Aws::DLM::Model::PolicyDetails::GetResourceTypes
const Aws::Vector< ResourceTypeValues > & GetResourceTypes() const
Definition: PolicyDetails.h:123
Aws::DLM::Model::PolicyDetails::AddResourceLocations
PolicyDetails & AddResourceLocations(const ResourceLocationValues &value)
Definition: PolicyDetails.h:257
Aws::DLM::Model::PolicyDetails::AddTargetTags
PolicyDetails & AddTargetTags(Tag &&value)
Definition: PolicyDetails.h:324
Aws::DLM::Model::PolicyDetails::WithEventSource
PolicyDetails & WithEventSource(const EventSource &value)
Definition: PolicyDetails.h:476
Aws::DLM::Model::PolicyDetails::SetTargetTags
void SetTargetTags(Aws::Vector< Tag > &&value)
Definition: PolicyDetails.h:296
Aws::DLM::Model::ResourceTypeValues
ResourceTypeValues
Definition: ResourceTypeValues.h:17
Aws
Definition: AccessManagementClient.h:15
Aws::DLM::Model::PolicyDetails::WithTargetTags
PolicyDetails & WithTargetTags(const Aws::Vector< Tag > &value)
Definition: PolicyDetails.h:303
Aws::DLM::Model::PolicyDetails::SetResourceLocations
void SetResourceLocations(Aws::Vector< ResourceLocationValues > &&value)
Definition: PolicyDetails.h:227
Aws::DLM::Model::PolicyDetails::AddResourceLocations
PolicyDetails & AddResourceLocations(ResourceLocationValues &&value)
Definition: PolicyDetails.h:267
Aws::DLM::Model::PolicyDetails::SetParameters
void SetParameters(const Parameters &value)
Definition: PolicyDetails.h:419
Aws::DLM::Model::PolicyDetails::SetSchedules
void SetSchedules(Aws::Vector< Schedule > &&value)
Definition: PolicyDetails.h:361
EventSource.h
Aws::DLM::Model::PolicyDetails::GetSchedules
const Aws::Vector< Schedule > & GetSchedules() const
Definition: PolicyDetails.h:334
Aws::DLM::Model::PolicyDetails::SetEventSource
void SetEventSource(EventSource &&value)
Definition: PolicyDetails.h:469
Aws::DLM::Model::PolicyDetails::WithResourceTypes
PolicyDetails & WithResourceTypes(Aws::Vector< ResourceTypeValues > &&value)
Definition: PolicyDetails.h:168
Aws::DLM::Model::PolicyDetails::SetResourceTypes
void SetResourceTypes(Aws::Vector< ResourceTypeValues > &&value)
Definition: PolicyDetails.h:150
Aws::DLM::Model::Parameters
Definition: Parameters.h:32
Aws::DLM::Model::PolicyTypeValues
PolicyTypeValues
Definition: PolicyTypeValues.h:17
Aws::DLM::Model::PolicyDetails::SetPolicyType
void SetPolicyType(PolicyTypeValues &&value)
Definition: PolicyDetails.h:91
Aws::DLM::Model::PolicyDetails::WithSchedules
PolicyDetails & WithSchedules(Aws::Vector< Schedule > &&value)
Definition: PolicyDetails.h:379
Aws::DLM::Model::PolicyDetails::AddResourceTypes
PolicyDetails & AddResourceTypes(const ResourceTypeValues &value)
Definition: PolicyDetails.h:177
Aws::DLM::Model::PolicyDetails::WithTargetTags
PolicyDetails & WithTargetTags(Aws::Vector< Tag > &&value)
Definition: PolicyDetails.h:310