Interface ResourcePolicy.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<ResourcePolicy.Builder,ResourcePolicy>,SdkBuilder<ResourcePolicy.Builder,ResourcePolicy>,SdkPojo
- Enclosing class:
- ResourcePolicy
@Mutable @NotThreadSafe public static interface ResourcePolicy.Builder extends SdkPojo, CopyableBuilder<ResourcePolicy.Builder,ResourcePolicy>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ResourcePolicy.BuilderlastUpdatedTime(Long lastUpdatedTime)Timestamp showing when this policy was last updated, expressed as the number of milliseconds afterJan 1, 1970 00:00:00 UTC.ResourcePolicy.BuilderpolicyDocument(String policyDocument)The details of the policy.ResourcePolicy.BuilderpolicyName(String policyName)The name of the resource policy.ResourcePolicy.BuilderpolicyScope(String policyScope)Specifies scope of the resource policy.ResourcePolicy.BuilderpolicyScope(PolicyScope policyScope)Specifies scope of the resource policy.ResourcePolicy.BuilderresourceArn(String resourceArn)The ARN of the CloudWatch Logs resource to which the resource policy is attached.ResourcePolicy.BuilderrevisionId(String revisionId)The revision ID of the resource policy.-
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 Detail
-
policyName
ResourcePolicy.Builder policyName(String policyName)
The name of the resource policy.
- Parameters:
policyName- The name of the resource policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyDocument
ResourcePolicy.Builder policyDocument(String policyDocument)
The details of the policy.
- Parameters:
policyDocument- The details of the policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastUpdatedTime
ResourcePolicy.Builder lastUpdatedTime(Long lastUpdatedTime)
Timestamp showing when this policy was last updated, expressed as the number of milliseconds after
Jan 1, 1970 00:00:00 UTC.- Parameters:
lastUpdatedTime- Timestamp showing when this policy was last updated, expressed as the number of milliseconds afterJan 1, 1970 00:00:00 UTC.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyScope
ResourcePolicy.Builder policyScope(String policyScope)
Specifies scope of the resource policy. Valid values are ACCOUNT or RESOURCE.
- Parameters:
policyScope- Specifies scope of the resource policy. Valid values are ACCOUNT or RESOURCE.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
PolicyScope,PolicyScope
-
policyScope
ResourcePolicy.Builder policyScope(PolicyScope policyScope)
Specifies scope of the resource policy. Valid values are ACCOUNT or RESOURCE.
- Parameters:
policyScope- Specifies scope of the resource policy. Valid values are ACCOUNT or RESOURCE.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
PolicyScope,PolicyScope
-
resourceArn
ResourcePolicy.Builder resourceArn(String resourceArn)
The ARN of the CloudWatch Logs resource to which the resource policy is attached. Only populated for resource-scoped policies.
- Parameters:
resourceArn- The ARN of the CloudWatch Logs resource to which the resource policy is attached. Only populated for resource-scoped policies.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
revisionId
ResourcePolicy.Builder revisionId(String revisionId)
The revision ID of the resource policy. Only populated for resource-scoped policies.
- Parameters:
revisionId- The revision ID of the resource policy. Only populated for resource-scoped policies.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-