public static final class LogSubscriptionDestinationConfig.Builder
extends java.lang.Object
LogSubscriptionDestinationConfig
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
LogSubscriptionDestinationConfig.Builder |
arn(java.lang.String arn)
Sets the value of
LogSubscriptionDestinationConfig.getArn() |
LogSubscriptionDestinationConfig |
build()
Builds the configured instance.
|
LogSubscriptionDestinationConfig.Builder |
role(IRole role)
Sets the value of
LogSubscriptionDestinationConfig.getRole() |
public LogSubscriptionDestinationConfig.Builder arn(java.lang.String arn)
LogSubscriptionDestinationConfig.getArn()
arn
- The ARN of the subscription's destination. This parameter is required.this
public LogSubscriptionDestinationConfig.Builder role(IRole role)
LogSubscriptionDestinationConfig.getRole()
role
- The role to assume to write log events to the destination.this
public LogSubscriptionDestinationConfig build()
LogSubscriptionDestinationConfig
java.lang.NullPointerException
- if any required attribute was not provided