public static interface AuthorizationRule.Builder extends SdkPojo, CopyableBuilder<AuthorizationRule.Builder,AuthorizationRule>
Modifier and Type | Method and Description |
---|---|
AuthorizationRule.Builder |
accessAll(Boolean accessAll)
Indicates whether the authorization rule grants access to all clients.
|
AuthorizationRule.Builder |
clientVpnEndpointId(String clientVpnEndpointId)
The ID of the Client VPN endpoint with which the authorization rule is associated.
|
AuthorizationRule.Builder |
description(String description)
A brief description of the authorization rule.
|
AuthorizationRule.Builder |
destinationCidr(String destinationCidr)
The IPv4 address range, in CIDR notation, of the network to which the authorization rule applies.
|
AuthorizationRule.Builder |
groupId(String groupId)
The ID of the Active Directory group to which the authorization rule grants access.
|
AuthorizationRule.Builder |
status(ClientVpnAuthorizationRuleStatus status)
The current state of the authorization rule.
|
default AuthorizationRule.Builder |
status(Consumer<ClientVpnAuthorizationRuleStatus.Builder> status)
The current state of the authorization rule.
|
equalsBySdkFields, sdkFields
copy
applyMutation, build
AuthorizationRule.Builder clientVpnEndpointId(String clientVpnEndpointId)
The ID of the Client VPN endpoint with which the authorization rule is associated.
clientVpnEndpointId
- The ID of the Client VPN endpoint with which the authorization rule is associated.AuthorizationRule.Builder description(String description)
A brief description of the authorization rule.
description
- A brief description of the authorization rule.AuthorizationRule.Builder groupId(String groupId)
The ID of the Active Directory group to which the authorization rule grants access.
groupId
- The ID of the Active Directory group to which the authorization rule grants access.AuthorizationRule.Builder accessAll(Boolean accessAll)
Indicates whether the authorization rule grants access to all clients.
accessAll
- Indicates whether the authorization rule grants access to all clients.AuthorizationRule.Builder destinationCidr(String destinationCidr)
The IPv4 address range, in CIDR notation, of the network to which the authorization rule applies.
destinationCidr
- The IPv4 address range, in CIDR notation, of the network to which the authorization rule applies.AuthorizationRule.Builder status(ClientVpnAuthorizationRuleStatus status)
The current state of the authorization rule.
status
- The current state of the authorization rule.default AuthorizationRule.Builder status(Consumer<ClientVpnAuthorizationRuleStatus.Builder> status)
The current state of the authorization rule.
This is a convenience method that creates an instance of theClientVpnAuthorizationRuleStatus.Builder
avoiding the need to create one manually via ClientVpnAuthorizationRuleStatus.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called
immediately and its result is passed to status(ClientVpnAuthorizationRuleStatus)
.
status
- a consumer that will call methods on ClientVpnAuthorizationRuleStatus.Builder
status(ClientVpnAuthorizationRuleStatus)
Copyright © 2023. All rights reserved.