Interface ListPoliciesGrantingServiceAccessEntry.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ListPoliciesGrantingServiceAccessEntry.Builder,
,ListPoliciesGrantingServiceAccessEntry> SdkBuilder<ListPoliciesGrantingServiceAccessEntry.Builder,
,ListPoliciesGrantingServiceAccessEntry> SdkPojo
- Enclosing class:
ListPoliciesGrantingServiceAccessEntry
-
Method Summary
Modifier and TypeMethodDescriptionpolicies
(Collection<PolicyGrantingServiceAccess> policies) ThePoliciesGrantingServiceAccess
object that contains details about the policy.policies
(Consumer<PolicyGrantingServiceAccess.Builder>... policies) ThePoliciesGrantingServiceAccess
object that contains details about the policy.policies
(PolicyGrantingServiceAccess... policies) ThePoliciesGrantingServiceAccess
object that contains details about the policy.serviceNamespace
(String serviceNamespace) The namespace of the service that was accessed.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, sdkFields
-
Method Details
-
serviceNamespace
The namespace of the service that was accessed.
To learn the service namespace of a service, see Actions, resources, and condition keys for Amazon Web Services services in the Service Authorization Reference. Choose the name of the service to view details for that service. In the first paragraph, find the service prefix. For example,
(service prefix: a4b)
. For more information about service namespaces, see Amazon Web Services service namespaces in the Amazon Web Services General Reference.- Parameters:
serviceNamespace
- The namespace of the service that was accessed.To learn the service namespace of a service, see Actions, resources, and condition keys for Amazon Web Services services in the Service Authorization Reference. Choose the name of the service to view details for that service. In the first paragraph, find the service prefix. For example,
(service prefix: a4b)
. For more information about service namespaces, see Amazon Web Services service namespaces in the Amazon Web Services General Reference.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policies
ListPoliciesGrantingServiceAccessEntry.Builder policies(Collection<PolicyGrantingServiceAccess> policies) The
PoliciesGrantingServiceAccess
object that contains details about the policy.- Parameters:
policies
- ThePoliciesGrantingServiceAccess
object that contains details about the policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policies
The
PoliciesGrantingServiceAccess
object that contains details about the policy.- Parameters:
policies
- ThePoliciesGrantingServiceAccess
object that contains details about the policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policies
ListPoliciesGrantingServiceAccessEntry.Builder policies(Consumer<PolicyGrantingServiceAccess.Builder>... policies) The
This is a convenience method that creates an instance of thePoliciesGrantingServiceAccess
object that contains details about the policy.PolicyGrantingServiceAccess.Builder
avoiding the need to create one manually viaPolicyGrantingServiceAccess.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed topolicies(List<PolicyGrantingServiceAccess>)
.- Parameters:
policies
- a consumer that will call methods onPolicyGrantingServiceAccess.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-