Interface CreateDashboardRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CloudTrailRequest.Builder
,CopyableBuilder<CreateDashboardRequest.Builder,
,CreateDashboardRequest> SdkBuilder<CreateDashboardRequest.Builder,
,CreateDashboardRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateDashboardRequest
-
Method Summary
Modifier and TypeMethodDescriptionThe name of the dashboard.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.default CreateDashboardRequest.Builder
refreshSchedule
(Consumer<RefreshSchedule.Builder> refreshSchedule) The refresh schedule configuration for the dashboard.refreshSchedule
(RefreshSchedule refreshSchedule) The refresh schedule configuration for the dashboard.tagsList
(Collection<Tag> tagsList) Sets the value of the TagsList property for this object.tagsList
(Consumer<Tag.Builder>... tagsList) Sets the value of the TagsList property for this object.Sets the value of the TagsList property for this object.terminationProtectionEnabled
(Boolean terminationProtectionEnabled) Specifies whether termination protection is enabled for the dashboard.widgets
(Collection<RequestWidget> widgets) An array of widgets for a custom dashboard.widgets
(Consumer<RequestWidget.Builder>... widgets) An array of widgets for a custom dashboard.widgets
(RequestWidget... widgets) An array of widgets for a custom dashboard.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.services.cloudtrail.model.CloudTrailRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
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 Details
-
name
The name of the dashboard. The name must be unique to your account.
To create the Highlights dashboard, the name must be
AWSCloudTrail-Highlights
.- Parameters:
name
- The name of the dashboard. The name must be unique to your account.To create the Highlights dashboard, the name must be
AWSCloudTrail-Highlights
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
refreshSchedule
The refresh schedule configuration for the dashboard.
To create the Highlights dashboard, you must set a refresh schedule and set the
Status
toENABLED
. TheUnit
for the refresh schedule must beHOURS
and theValue
must be6
.- Parameters:
refreshSchedule
- The refresh schedule configuration for the dashboard.To create the Highlights dashboard, you must set a refresh schedule and set the
Status
toENABLED
. TheUnit
for the refresh schedule must beHOURS
and theValue
must be6
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
refreshSchedule
default CreateDashboardRequest.Builder refreshSchedule(Consumer<RefreshSchedule.Builder> refreshSchedule) The refresh schedule configuration for the dashboard.
To create the Highlights dashboard, you must set a refresh schedule and set the
This is a convenience method that creates an instance of theStatus
toENABLED
. TheUnit
for the refresh schedule must beHOURS
and theValue
must be6
.RefreshSchedule.Builder
avoiding the need to create one manually viaRefreshSchedule.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed torefreshSchedule(RefreshSchedule)
.- Parameters:
refreshSchedule
- a consumer that will call methods onRefreshSchedule.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tagsList
Sets the value of the TagsList property for this object.- Parameters:
tagsList
- The new value for the TagsList property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tagsList
Sets the value of the TagsList property for this object.- Parameters:
tagsList
- The new value for the TagsList property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tagsList
Sets the value of the TagsList property for this object. This is a convenience method that creates an instance of theTag.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totagsList(List<Tag>)
.- Parameters:
tagsList
- a consumer that will call methods onTag.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
terminationProtectionEnabled
Specifies whether termination protection is enabled for the dashboard. If termination protection is enabled, you cannot delete the dashboard until termination protection is disabled.
- Parameters:
terminationProtectionEnabled
- Specifies whether termination protection is enabled for the dashboard. If termination protection is enabled, you cannot delete the dashboard until termination protection is disabled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
widgets
An array of widgets for a custom dashboard. A custom dashboard can have a maximum of ten widgets.
You do not need to specify widgets for the Highlights dashboard.
- Parameters:
widgets
- An array of widgets for a custom dashboard. A custom dashboard can have a maximum of ten widgets.You do not need to specify widgets for the Highlights dashboard.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
widgets
An array of widgets for a custom dashboard. A custom dashboard can have a maximum of ten widgets.
You do not need to specify widgets for the Highlights dashboard.
- Parameters:
widgets
- An array of widgets for a custom dashboard. A custom dashboard can have a maximum of ten widgets.You do not need to specify widgets for the Highlights dashboard.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
widgets
An array of widgets for a custom dashboard. A custom dashboard can have a maximum of ten widgets.
You do not need to specify widgets for the Highlights dashboard.
This is a convenience method that creates an instance of theRequestWidget.Builder
avoiding the need to create one manually viaRequestWidget.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed towidgets(List<RequestWidget>)
.- Parameters:
widgets
- a consumer that will call methods onRequestWidget.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
CreateDashboardRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateDashboardRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-