Interface CreateSnapshotsRequest.Builder

    • Method Detail

      • description

        CreateSnapshotsRequest.Builder description​(String description)

        A description propagated to every snapshot specified by the instance.

        Parameters:
        description - A description propagated to every snapshot specified by the instance.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • instanceSpecification

        CreateSnapshotsRequest.Builder instanceSpecification​(InstanceSpecification instanceSpecification)

        The instance to specify which volumes should be included in the snapshots.

        Parameters:
        instanceSpecification - The instance to specify which volumes should be included in the snapshots.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • outpostArn

        CreateSnapshotsRequest.Builder outpostArn​(String outpostArn)

        Only supported for instances on Outposts. If the source instance is not on an Outpost, omit this parameter.

        • To create the snapshots on the same Outpost as the source instance, specify the ARN of that Outpost. The snapshots must be created on the same Outpost as the instance.

        • To create the snapshots in the parent Region of the Outpost, omit this parameter.

        For more information, see Create local snapshots from volumes on an Outpost in the Amazon EBS User Guide.

        Parameters:
        outpostArn -

        Only supported for instances on Outposts. If the source instance is not on an Outpost, omit this parameter.

        • To create the snapshots on the same Outpost as the source instance, specify the ARN of that Outpost. The snapshots must be created on the same Outpost as the instance.

        • To create the snapshots in the parent Region of the Outpost, omit this parameter.

        For more information, see Create local snapshots from volumes on an Outpost in the Amazon EBS User Guide.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tagSpecifications

        CreateSnapshotsRequest.Builder tagSpecifications​(Collection<TagSpecification> tagSpecifications)

        Tags to apply to every snapshot specified by the instance.

        Parameters:
        tagSpecifications - Tags to apply to every snapshot specified by the instance.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tagSpecifications

        CreateSnapshotsRequest.Builder tagSpecifications​(TagSpecification... tagSpecifications)

        Tags to apply to every snapshot specified by the instance.

        Parameters:
        tagSpecifications - Tags to apply to every snapshot specified by the instance.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • dryRun

        CreateSnapshotsRequest.Builder dryRun​(Boolean dryRun)

        Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

        Parameters:
        dryRun - Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • copyTagsFromSource

        CreateSnapshotsRequest.Builder copyTagsFromSource​(String copyTagsFromSource)

        Copies the tags from the specified volume to corresponding snapshot.

        Parameters:
        copyTagsFromSource - Copies the tags from the specified volume to corresponding snapshot.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        CopyTagsFromSource, CopyTagsFromSource
      • copyTagsFromSource

        CreateSnapshotsRequest.Builder copyTagsFromSource​(CopyTagsFromSource copyTagsFromSource)

        Copies the tags from the specified volume to corresponding snapshot.

        Parameters:
        copyTagsFromSource - Copies the tags from the specified volume to corresponding snapshot.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        CopyTagsFromSource, CopyTagsFromSource
      • location

        CreateSnapshotsRequest.Builder location​(String location)

        Only supported for instances in Local Zones. If the source instance is not in a Local Zone, omit this parameter.

        • To create local snapshots in the same Local Zone as the source instance, specify local.

        • To create a regional snapshots in the parent Region of the Local Zone, specify regional or omit this parameter.

        Default value: regional

        Parameters:
        location -

        Only supported for instances in Local Zones. If the source instance is not in a Local Zone, omit this parameter.

        • To create local snapshots in the same Local Zone as the source instance, specify local.

        • To create a regional snapshots in the parent Region of the Local Zone, specify regional or omit this parameter.

        Default value: regional

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        SnapshotLocationEnum, SnapshotLocationEnum
      • location

        CreateSnapshotsRequest.Builder location​(SnapshotLocationEnum location)

        Only supported for instances in Local Zones. If the source instance is not in a Local Zone, omit this parameter.

        • To create local snapshots in the same Local Zone as the source instance, specify local.

        • To create a regional snapshots in the parent Region of the Local Zone, specify regional or omit this parameter.

        Default value: regional

        Parameters:
        location -

        Only supported for instances in Local Zones. If the source instance is not in a Local Zone, omit this parameter.

        • To create local snapshots in the same Local Zone as the source instance, specify local.

        • To create a regional snapshots in the parent Region of the Local Zone, specify regional or omit this parameter.

        Default value: regional

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        SnapshotLocationEnum, SnapshotLocationEnum