Interface CreateLinkRequest.Builder

All Superinterfaces:
AwsRequest.Builder, Buildable, CopyableBuilder<CreateLinkRequest.Builder,CreateLinkRequest>, OamRequest.Builder, SdkBuilder<CreateLinkRequest.Builder,CreateLinkRequest>, SdkPojo, SdkRequest.Builder
Enclosing class:
CreateLinkRequest

public static interface CreateLinkRequest.Builder extends OamRequest.Builder, SdkPojo, CopyableBuilder<CreateLinkRequest.Builder,CreateLinkRequest>
  • Method Details

    • labelTemplate

      CreateLinkRequest.Builder labelTemplate(String labelTemplate)

      Specify a friendly human-readable name to use to identify this source account when you are viewing data from it in the monitoring account.

      You can use a custom label or use the following variables:

      • $AccountName is the name of the account

      • $AccountEmail is the globally unique email address of the account

      • $AccountEmailNoDomain is the email address of the account without the domain name

      Parameters:
      labelTemplate - Specify a friendly human-readable name to use to identify this source account when you are viewing data from it in the monitoring account.

      You can use a custom label or use the following variables:

      • $AccountName is the name of the account

      • $AccountEmail is the globally unique email address of the account

      • $AccountEmailNoDomain is the email address of the account without the domain name

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

      CreateLinkRequest.Builder linkConfiguration(LinkConfiguration linkConfiguration)

      Use this structure to optionally create filters that specify that only some metric namespaces or log groups are to be shared from the source account to the monitoring account.

      Parameters:
      linkConfiguration - Use this structure to optionally create filters that specify that only some metric namespaces or log groups are to be shared from the source account to the monitoring account.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • linkConfiguration

      default CreateLinkRequest.Builder linkConfiguration(Consumer<LinkConfiguration.Builder> linkConfiguration)

      Use this structure to optionally create filters that specify that only some metric namespaces or log groups are to be shared from the source account to the monitoring account.

      This is a convenience method that creates an instance of the LinkConfiguration.Builder avoiding the need to create one manually via LinkConfiguration.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to linkConfiguration(LinkConfiguration).

      Parameters:
      linkConfiguration - a consumer that will call methods on LinkConfiguration.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • resourceTypesWithStrings

      CreateLinkRequest.Builder resourceTypesWithStrings(Collection<String> resourceTypes)

      An array of strings that define which types of data that the source account shares with the monitoring account.

      Parameters:
      resourceTypes - An array of strings that define which types of data that the source account shares with the monitoring account.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resourceTypesWithStrings

      CreateLinkRequest.Builder resourceTypesWithStrings(String... resourceTypes)

      An array of strings that define which types of data that the source account shares with the monitoring account.

      Parameters:
      resourceTypes - An array of strings that define which types of data that the source account shares with the monitoring account.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resourceTypes

      CreateLinkRequest.Builder resourceTypes(Collection<ResourceType> resourceTypes)

      An array of strings that define which types of data that the source account shares with the monitoring account.

      Parameters:
      resourceTypes - An array of strings that define which types of data that the source account shares with the monitoring account.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resourceTypes

      CreateLinkRequest.Builder resourceTypes(ResourceType... resourceTypes)

      An array of strings that define which types of data that the source account shares with the monitoring account.

      Parameters:
      resourceTypes - An array of strings that define which types of data that the source account shares with the monitoring account.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sinkIdentifier

      CreateLinkRequest.Builder sinkIdentifier(String sinkIdentifier)

      The ARN of the sink to use to create this link. You can use ListSinks to find the ARNs of sinks.

      For more information about sinks, see CreateSink.

      Parameters:
      sinkIdentifier - The ARN of the sink to use to create this link. You can use ListSinks to find the ARNs of sinks.

      For more information about sinks, see CreateSink.

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

      Assigns one or more tags (key-value pairs) to the link.

      Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values.

      For more information about using tags to control access, see Controlling access to Amazon Web Services resources using tags.

      Parameters:
      tags - Assigns one or more tags (key-value pairs) to the link.

      Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values.

      For more information about using tags to control access, see Controlling access to Amazon Web Services resources using tags.

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

      CreateLinkRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.