Interface CreateAppRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateAppRequest.Builder,CreateAppRequest>,ResiliencehubRequest.Builder,SdkBuilder<CreateAppRequest.Builder,CreateAppRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- CreateAppRequest
public static interface CreateAppRequest.Builder extends ResiliencehubRequest.Builder, SdkPojo, CopyableBuilder<CreateAppRequest.Builder,CreateAppRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CreateAppRequest.BuilderassessmentSchedule(String assessmentSchedule)Assessment execution schedule with 'Daily' or 'Disabled' values.CreateAppRequest.BuilderassessmentSchedule(AppAssessmentScheduleType assessmentSchedule)Assessment execution schedule with 'Daily' or 'Disabled' values.CreateAppRequest.BuilderawsApplicationArn(String awsApplicationArn)Amazon Resource Name (ARN) of Resource Groups group that is integrated with an AppRegistry application.CreateAppRequest.BuilderclientToken(String clientToken)Used for an idempotency token.CreateAppRequest.Builderdescription(String description)The optional description for an app.CreateAppRequest.BuildereventSubscriptions(Collection<EventSubscription> eventSubscriptions)The list of events you would like to subscribe and get notification for.CreateAppRequest.BuildereventSubscriptions(Consumer<EventSubscription.Builder>... eventSubscriptions)The list of events you would like to subscribe and get notification for.CreateAppRequest.BuildereventSubscriptions(EventSubscription... eventSubscriptions)The list of events you would like to subscribe and get notification for.CreateAppRequest.Buildername(String name)Name of the application.CreateAppRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)CreateAppRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)default CreateAppRequest.BuilderpermissionModel(Consumer<PermissionModel.Builder> permissionModel)Defines the roles and credentials that Resilience Hub would use while creating the application, importing its resources, and running an assessment.CreateAppRequest.BuilderpermissionModel(PermissionModel permissionModel)Defines the roles and credentials that Resilience Hub would use while creating the application, importing its resources, and running an assessment.CreateAppRequest.BuilderpolicyArn(String policyArn)Amazon Resource Name (ARN) of the resiliency policy.CreateAppRequest.Buildertags(Map<String,String> tags)Tags assigned to the resource.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.resiliencehub.model.ResiliencehubRequest.Builder
build
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
assessmentSchedule
CreateAppRequest.Builder assessmentSchedule(String assessmentSchedule)
Assessment execution schedule with 'Daily' or 'Disabled' values.
- Parameters:
assessmentSchedule- Assessment execution schedule with 'Daily' or 'Disabled' values.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
AppAssessmentScheduleType,AppAssessmentScheduleType
-
assessmentSchedule
CreateAppRequest.Builder assessmentSchedule(AppAssessmentScheduleType assessmentSchedule)
Assessment execution schedule with 'Daily' or 'Disabled' values.
- Parameters:
assessmentSchedule- Assessment execution schedule with 'Daily' or 'Disabled' values.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
AppAssessmentScheduleType,AppAssessmentScheduleType
-
awsApplicationArn
CreateAppRequest.Builder awsApplicationArn(String awsApplicationArn)
Amazon Resource Name (ARN) of Resource Groups group that is integrated with an AppRegistry application. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.
- Parameters:
awsApplicationArn- Amazon Resource Name (ARN) of Resource Groups group that is integrated with an AppRegistry application. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clientToken
CreateAppRequest.Builder clientToken(String clientToken)
Used for an idempotency token. A client token is a unique, case-sensitive string of up to 64 ASCII characters. You should not reuse the same client token for other API requests.
- Parameters:
clientToken- Used for an idempotency token. A client token is a unique, case-sensitive string of up to 64 ASCII characters. You should not reuse the same client token for other API requests.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
CreateAppRequest.Builder description(String description)
The optional description for an app.
- Parameters:
description- The optional description for an app.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eventSubscriptions
CreateAppRequest.Builder eventSubscriptions(Collection<EventSubscription> eventSubscriptions)
The list of events you would like to subscribe and get notification for. Currently, Resilience Hub supports only Drift detected and Scheduled assessment failure events notification.
- Parameters:
eventSubscriptions- The list of events you would like to subscribe and get notification for. Currently, Resilience Hub supports only Drift detected and Scheduled assessment failure events notification.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eventSubscriptions
CreateAppRequest.Builder eventSubscriptions(EventSubscription... eventSubscriptions)
The list of events you would like to subscribe and get notification for. Currently, Resilience Hub supports only Drift detected and Scheduled assessment failure events notification.
- Parameters:
eventSubscriptions- The list of events you would like to subscribe and get notification for. Currently, Resilience Hub supports only Drift detected and Scheduled assessment failure events notification.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eventSubscriptions
CreateAppRequest.Builder eventSubscriptions(Consumer<EventSubscription.Builder>... eventSubscriptions)
The list of events you would like to subscribe and get notification for. Currently, Resilience Hub supports only Drift detected and Scheduled assessment failure events notification.
This is a convenience method that creates an instance of theEventSubscription.Builderavoiding the need to create one manually viaEventSubscription.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#eventSubscriptions(List.) - Parameters:
eventSubscriptions- a consumer that will call methods onEventSubscription.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#eventSubscriptions(java.util.Collection)
-
name
CreateAppRequest.Builder name(String name)
Name of the application.
- Parameters:
name- Name of the application.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
permissionModel
CreateAppRequest.Builder permissionModel(PermissionModel permissionModel)
Defines the roles and credentials that Resilience Hub would use while creating the application, importing its resources, and running an assessment.
- Parameters:
permissionModel- Defines the roles and credentials that Resilience Hub would use while creating the application, importing its resources, and running an assessment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
permissionModel
default CreateAppRequest.Builder permissionModel(Consumer<PermissionModel.Builder> permissionModel)
Defines the roles and credentials that Resilience Hub would use while creating the application, importing its resources, and running an assessment.
This is a convenience method that creates an instance of thePermissionModel.Builderavoiding the need to create one manually viaPermissionModel.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topermissionModel(PermissionModel).- Parameters:
permissionModel- a consumer that will call methods onPermissionModel.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
permissionModel(PermissionModel)
-
policyArn
CreateAppRequest.Builder policyArn(String policyArn)
Amazon Resource Name (ARN) of the resiliency policy. The format for this ARN is: arn:
partition:resiliencehub:region:account:resiliency-policy/policy-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.- Parameters:
policyArn- Amazon Resource Name (ARN) of the resiliency policy. The format for this ARN is: arn:partition:resiliencehub:region:account:resiliency-policy/policy-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
CreateAppRequest.Builder tags(Map<String,String> tags)
Tags assigned to the resource. A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key/value pair.
- Parameters:
tags- Tags assigned to the resource. A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key/value pair.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateAppRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CreateAppRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-