7#include <aws/resiliencehub/ResilienceHub_EXPORTS.h>
8#include <aws/resiliencehub/ResilienceHubRequest.h>
9#include <aws/resiliencehub/model/AppAssessmentScheduleType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/resiliencehub/model/PermissionModel.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <aws/resiliencehub/model/EventSubscription.h>
16#include <aws/core/utils/UUID.h>
20namespace ResilienceHub
61 template<
typename AwsApplicationArnT = Aws::String>
62 void SetAwsApplicationArn(AwsApplicationArnT&& value) { m_awsApplicationArnHasBeenSet =
true; m_awsApplicationArn = std::forward<AwsApplicationArnT>(value); }
63 template<
typename AwsApplicationArnT = Aws::String>
75 template<
typename ClientTokenT = Aws::String>
76 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet =
true; m_clientToken = std::forward<ClientTokenT>(value); }
77 template<
typename ClientTokenT = Aws::String>
87 template<
typename DescriptionT = Aws::String>
88 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet =
true; m_description = std::forward<DescriptionT>(value); }
89 template<
typename DescriptionT = Aws::String>
101 template<
typename EventSubscriptionsT = Aws::Vector<EventSubscription>>
102 void SetEventSubscriptions(EventSubscriptionsT&& value) { m_eventSubscriptionsHasBeenSet =
true; m_eventSubscriptions = std::forward<EventSubscriptionsT>(value); }
103 template<
typename EventSubscriptionsT = Aws::Vector<EventSubscription>>
105 template<
typename EventSubscriptionsT = EventSubscription>
106 CreateAppRequest&
AddEventSubscriptions(EventSubscriptionsT&& value) { m_eventSubscriptionsHasBeenSet =
true; m_eventSubscriptions.emplace_back(std::forward<EventSubscriptionsT>(value));
return *
this; }
115 template<
typename NameT = Aws::String>
116 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
117 template<
typename NameT = Aws::String>
129 template<
typename PermissionModelT = PermissionModel>
130 void SetPermissionModel(PermissionModelT&& value) { m_permissionModelHasBeenSet =
true; m_permissionModel = std::forward<PermissionModelT>(value); }
131 template<
typename PermissionModelT = PermissionModel>
147 template<
typename PolicyArnT = Aws::String>
148 void SetPolicyArn(PolicyArnT&& value) { m_policyArnHasBeenSet =
true; m_policyArn = std::forward<PolicyArnT>(value); }
149 template<
typename PolicyArnT = Aws::String>
160 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
161 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
162 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
164 template<
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
166 m_tagsHasBeenSet =
true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
return *
this;
172 bool m_assessmentScheduleHasBeenSet =
false;
175 bool m_awsApplicationArnHasBeenSet =
false;
178 bool m_clientTokenHasBeenSet =
true;
181 bool m_descriptionHasBeenSet =
false;
184 bool m_eventSubscriptionsHasBeenSet =
false;
187 bool m_nameHasBeenSet =
false;
189 PermissionModel m_permissionModel;
190 bool m_permissionModelHasBeenSet =
false;
193 bool m_policyArnHasBeenSet =
false;
196 bool m_tagsHasBeenSet =
false;
const Aws::String & GetAwsApplicationArn() const
void SetDescription(DescriptionT &&value)
CreateAppRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_RESILIENCEHUB_API Aws::String SerializePayload() const override
AppAssessmentScheduleType GetAssessmentSchedule() const
bool NameHasBeenSet() const
CreateAppRequest & WithName(NameT &&value)
void SetClientToken(ClientTokenT &&value)
CreateAppRequest & WithAssessmentSchedule(AppAssessmentScheduleType value)
CreateAppRequest & AddEventSubscriptions(EventSubscriptionsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
bool TagsHasBeenSet() const
void SetAssessmentSchedule(AppAssessmentScheduleType value)
CreateAppRequest & WithDescription(DescriptionT &&value)
CreateAppRequest & WithPermissionModel(PermissionModelT &&value)
CreateAppRequest & WithEventSubscriptions(EventSubscriptionsT &&value)
bool EventSubscriptionsHasBeenSet() const
virtual const char * GetServiceRequestName() const override
void SetPermissionModel(PermissionModelT &&value)
const Aws::Vector< EventSubscription > & GetEventSubscriptions() const
CreateAppRequest & WithAwsApplicationArn(AwsApplicationArnT &&value)
const Aws::String & GetDescription() const
void SetTags(TagsT &&value)
CreateAppRequest & WithTags(TagsT &&value)
const Aws::String & GetPolicyArn() const
const Aws::String & GetName() const
bool ClientTokenHasBeenSet() const
bool AssessmentScheduleHasBeenSet() const
void SetPolicyArn(PolicyArnT &&value)
const PermissionModel & GetPermissionModel() const
CreateAppRequest & WithClientToken(ClientTokenT &&value)
bool PolicyArnHasBeenSet() const
bool DescriptionHasBeenSet() const
const Aws::String & GetClientToken() const
bool AwsApplicationArnHasBeenSet() const
CreateAppRequest & WithPolicyArn(PolicyArnT &&value)
void SetEventSubscriptions(EventSubscriptionsT &&value)
bool PermissionModelHasBeenSet() const
void SetName(NameT &&value)
AWS_RESILIENCEHUB_API CreateAppRequest()=default
void SetAwsApplicationArn(AwsApplicationArnT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
AppAssessmentScheduleType
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector