Interface PrivateNetworksClient
-
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
@Generated("software.amazon.awssdk:codegen") @ThreadSafe public interface PrivateNetworksClient extends AwsClient
Service client for accessing AWS Private 5G. This can be created using the staticbuilder()method.Amazon Web Services Private 5G is a managed service that makes it easy to deploy, operate, and scale your own private mobile network at your on-premises location. Private 5G provides the pre-configured hardware and software for mobile networks, helps automate setup, and scales capacity on demand to support additional devices as needed.
-
-
Field Summary
Fields Modifier and Type Field Description static StringSERVICE_METADATA_IDValue for looking up the service's metadata from theServiceMetadataProvider.static StringSERVICE_NAME
-
Method Summary
-
Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
close
-
Methods inherited from interface software.amazon.awssdk.core.SdkClient
serviceName
-
-
-
-
Field Detail
-
SERVICE_NAME
static final String SERVICE_NAME
- See Also:
- Constant Field Values
-
SERVICE_METADATA_ID
static final String SERVICE_METADATA_ID
Value for looking up the service's metadata from theServiceMetadataProvider.- See Also:
- Constant Field Values
-
-
Method Detail
-
acknowledgeOrderReceipt
default AcknowledgeOrderReceiptResponse acknowledgeOrderReceipt(AcknowledgeOrderReceiptRequest acknowledgeOrderReceiptRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, PrivateNetworksException
Acknowledges that the specified network order was received.
- Parameters:
acknowledgeOrderReceiptRequest-- Returns:
- Result of the AcknowledgeOrderReceipt operation returned by the service.
- Throws:
ResourceNotFoundException- The resource was not found.ValidationException- The request failed validation.InternalServerException- Information about an internal error.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.PrivateNetworksException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
acknowledgeOrderReceipt
default AcknowledgeOrderReceiptResponse acknowledgeOrderReceipt(Consumer<AcknowledgeOrderReceiptRequest.Builder> acknowledgeOrderReceiptRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, PrivateNetworksException
Acknowledges that the specified network order was received.
This is a convenience which creates an instance of the
AcknowledgeOrderReceiptRequest.Builderavoiding the need to create one manually viaAcknowledgeOrderReceiptRequest.builder()- Parameters:
acknowledgeOrderReceiptRequest- AConsumerthat will call methods onAcknowledgeOrderReceiptRequest.Builderto create a request.- Returns:
- Result of the AcknowledgeOrderReceipt operation returned by the service.
- Throws:
ResourceNotFoundException- The resource was not found.ValidationException- The request failed validation.InternalServerException- Information about an internal error.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.PrivateNetworksException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
activateDeviceIdentifier
default ActivateDeviceIdentifierResponse activateDeviceIdentifier(ActivateDeviceIdentifierRequest activateDeviceIdentifierRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, PrivateNetworksException
Activates the specified device identifier.
- Parameters:
activateDeviceIdentifierRequest-- Returns:
- Result of the ActivateDeviceIdentifier operation returned by the service.
- Throws:
ResourceNotFoundException- The resource was not found.ValidationException- The request failed validation.InternalServerException- Information about an internal error.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.PrivateNetworksException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
activateDeviceIdentifier
default ActivateDeviceIdentifierResponse activateDeviceIdentifier(Consumer<ActivateDeviceIdentifierRequest.Builder> activateDeviceIdentifierRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, PrivateNetworksException
Activates the specified device identifier.
This is a convenience which creates an instance of the
ActivateDeviceIdentifierRequest.Builderavoiding the need to create one manually viaActivateDeviceIdentifierRequest.builder()- Parameters:
activateDeviceIdentifierRequest- AConsumerthat will call methods onActivateDeviceIdentifierRequest.Builderto create a request.- Returns:
- Result of the ActivateDeviceIdentifier operation returned by the service.
- Throws:
ResourceNotFoundException- The resource was not found.ValidationException- The request failed validation.InternalServerException- Information about an internal error.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.PrivateNetworksException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
activateNetworkSite
default ActivateNetworkSiteResponse activateNetworkSite(ActivateNetworkSiteRequest activateNetworkSiteRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, PrivateNetworksException
Activates the specified network site.
- Parameters:
activateNetworkSiteRequest-- Returns:
- Result of the ActivateNetworkSite operation returned by the service.
- Throws:
ResourceNotFoundException- The resource was not found.ValidationException- The request failed validation.InternalServerException- Information about an internal error.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.PrivateNetworksException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
activateNetworkSite
default ActivateNetworkSiteResponse activateNetworkSite(Consumer<ActivateNetworkSiteRequest.Builder> activateNetworkSiteRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, PrivateNetworksException
Activates the specified network site.
This is a convenience which creates an instance of the
ActivateNetworkSiteRequest.Builderavoiding the need to create one manually viaActivateNetworkSiteRequest.builder()- Parameters:
activateNetworkSiteRequest- AConsumerthat will call methods onActivateNetworkSiteRequest.Builderto create a request.- Returns:
- Result of the ActivateNetworkSite operation returned by the service.
- Throws:
ResourceNotFoundException- The resource was not found.ValidationException- The request failed validation.InternalServerException- Information about an internal error.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.PrivateNetworksException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
configureAccessPoint
default ConfigureAccessPointResponse configureAccessPoint(ConfigureAccessPointRequest configureAccessPointRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, PrivateNetworksException
Configures the specified network resource.
Use this action to specify the geographic position of the hardware. You must provide Certified Professional Installer (CPI) credentials in the request so that we can obtain spectrum grants. For more information, see Radio units in the Amazon Web Services Private 5G User Guide.
- Parameters:
configureAccessPointRequest-- Returns:
- Result of the ConfigureAccessPoint operation returned by the service.
- Throws:
ResourceNotFoundException- The resource was not found.ValidationException- The request failed validation.InternalServerException- Information about an internal error.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.PrivateNetworksException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
configureAccessPoint
default ConfigureAccessPointResponse configureAccessPoint(Consumer<ConfigureAccessPointRequest.Builder> configureAccessPointRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, PrivateNetworksException
Configures the specified network resource.
Use this action to specify the geographic position of the hardware. You must provide Certified Professional Installer (CPI) credentials in the request so that we can obtain spectrum grants. For more information, see Radio units in the Amazon Web Services Private 5G User Guide.
This is a convenience which creates an instance of the
ConfigureAccessPointRequest.Builderavoiding the need to create one manually viaConfigureAccessPointRequest.builder()- Parameters:
configureAccessPointRequest- AConsumerthat will call methods onConfigureAccessPointRequest.Builderto create a request.- Returns:
- Result of the ConfigureAccessPoint operation returned by the service.
- Throws:
ResourceNotFoundException- The resource was not found.ValidationException- The request failed validation.InternalServerException- Information about an internal error.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.PrivateNetworksException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
createNetwork
default CreateNetworkResponse createNetwork(CreateNetworkRequest createNetworkRequest) throws LimitExceededException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, PrivateNetworksException
Creates a network.
- Parameters:
createNetworkRequest-- Returns:
- Result of the CreateNetwork operation returned by the service.
- Throws:
LimitExceededException- The limit was exceeded.ValidationException- The request failed validation.InternalServerException- Information about an internal error.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.PrivateNetworksException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
createNetwork
default CreateNetworkResponse createNetwork(Consumer<CreateNetworkRequest.Builder> createNetworkRequest) throws LimitExceededException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, PrivateNetworksException
Creates a network.
This is a convenience which creates an instance of the
CreateNetworkRequest.Builderavoiding the need to create one manually viaCreateNetworkRequest.builder()- Parameters:
createNetworkRequest- AConsumerthat will call methods onCreateNetworkRequest.Builderto create a request.- Returns:
- Result of the CreateNetwork operation returned by the service.
- Throws:
LimitExceededException- The limit was exceeded.ValidationException- The request failed validation.InternalServerException- Information about an internal error.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.PrivateNetworksException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
createNetworkSite
default CreateNetworkSiteResponse createNetworkSite(CreateNetworkSiteRequest createNetworkSiteRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, PrivateNetworksException
Creates a network site.
- Parameters:
createNetworkSiteRequest-- Returns:
- Result of the CreateNetworkSite operation returned by the service.
- Throws:
ResourceNotFoundException- The resource was not found.ValidationException- The request failed validation.InternalServerException- Information about an internal error.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.PrivateNetworksException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
createNetworkSite
default CreateNetworkSiteResponse createNetworkSite(Consumer<CreateNetworkSiteRequest.Builder> createNetworkSiteRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, PrivateNetworksException
Creates a network site.
This is a convenience which creates an instance of the
CreateNetworkSiteRequest.Builderavoiding the need to create one manually viaCreateNetworkSiteRequest.builder()- Parameters:
createNetworkSiteRequest- AConsumerthat will call methods onCreateNetworkSiteRequest.Builderto create a request.- Returns:
- Result of the CreateNetworkSite operation returned by the service.
- Throws:
ResourceNotFoundException- The resource was not found.ValidationException- The request failed validation.InternalServerException- Information about an internal error.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.PrivateNetworksException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deactivateDeviceIdentifier
default DeactivateDeviceIdentifierResponse deactivateDeviceIdentifier(DeactivateDeviceIdentifierRequest deactivateDeviceIdentifierRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, PrivateNetworksException
Deactivates the specified device identifier.
- Parameters:
deactivateDeviceIdentifierRequest-- Returns:
- Result of the DeactivateDeviceIdentifier operation returned by the service.
- Throws:
ResourceNotFoundException- The resource was not found.ValidationException- The request failed validation.InternalServerException- Information about an internal error.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.PrivateNetworksException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deactivateDeviceIdentifier
default DeactivateDeviceIdentifierResponse deactivateDeviceIdentifier(Consumer<DeactivateDeviceIdentifierRequest.Builder> deactivateDeviceIdentifierRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, PrivateNetworksException
Deactivates the specified device identifier.
This is a convenience which creates an instance of the
DeactivateDeviceIdentifierRequest.Builderavoiding the need to create one manually viaDeactivateDeviceIdentifierRequest.builder()- Parameters:
deactivateDeviceIdentifierRequest- AConsumerthat will call methods onDeactivateDeviceIdentifierRequest.Builderto create a request.- Returns:
- Result of the DeactivateDeviceIdentifier operation returned by the service.
- Throws:
ResourceNotFoundException- The resource was not found.ValidationException- The request failed validation.InternalServerException- Information about an internal error.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.PrivateNetworksException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deleteNetwork
default DeleteNetworkResponse deleteNetwork(DeleteNetworkRequest deleteNetworkRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, PrivateNetworksException
Deletes the specified network. You must delete network sites before you delete the network. For more information, see DeleteNetworkSite in the API Reference for Amazon Web Services Private 5G.
- Parameters:
deleteNetworkRequest-- Returns:
- Result of the DeleteNetwork operation returned by the service.
- Throws:
ResourceNotFoundException- The resource was not found.AccessDeniedException- You do not have permission to perform this operation.ValidationException- The request failed validation.InternalServerException- Information about an internal error.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.PrivateNetworksException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deleteNetwork
default DeleteNetworkResponse deleteNetwork(Consumer<DeleteNetworkRequest.Builder> deleteNetworkRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, PrivateNetworksException
Deletes the specified network. You must delete network sites before you delete the network. For more information, see DeleteNetworkSite in the API Reference for Amazon Web Services Private 5G.
This is a convenience which creates an instance of the
DeleteNetworkRequest.Builderavoiding the need to create one manually viaDeleteNetworkRequest.builder()- Parameters:
deleteNetworkRequest- AConsumerthat will call methods onDeleteNetworkRequest.Builderto create a request.- Returns:
- Result of the DeleteNetwork operation returned by the service.
- Throws:
ResourceNotFoundException- The resource was not found.AccessDeniedException- You do not have permission to perform this operation.ValidationException- The request failed validation.InternalServerException- Information about an internal error.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.PrivateNetworksException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deleteNetworkSite
default DeleteNetworkSiteResponse deleteNetworkSite(DeleteNetworkSiteRequest deleteNetworkSiteRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, PrivateNetworksException
Deletes the specified network site. Return the hardware after you delete the network site. You are responsible for minimum charges. For more information, see Hardware returns in the Amazon Web Services Private 5G User Guide.
- Parameters:
deleteNetworkSiteRequest-- Returns:
- Result of the DeleteNetworkSite operation returned by the service.
- Throws:
ResourceNotFoundException- The resource was not found.AccessDeniedException- You do not have permission to perform this operation.ValidationException- The request failed validation.InternalServerException- Information about an internal error.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.PrivateNetworksException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deleteNetworkSite
default DeleteNetworkSiteResponse deleteNetworkSite(Consumer<DeleteNetworkSiteRequest.Builder> deleteNetworkSiteRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, PrivateNetworksException
Deletes the specified network site. Return the hardware after you delete the network site. You are responsible for minimum charges. For more information, see Hardware returns in the Amazon Web Services Private 5G User Guide.
This is a convenience which creates an instance of the
DeleteNetworkSiteRequest.Builderavoiding the need to create one manually viaDeleteNetworkSiteRequest.builder()- Parameters:
deleteNetworkSiteRequest- AConsumerthat will call methods onDeleteNetworkSiteRequest.Builderto create a request.- Returns:
- Result of the DeleteNetworkSite operation returned by the service.
- Throws:
ResourceNotFoundException- The resource was not found.AccessDeniedException- You do not have permission to perform this operation.ValidationException- The request failed validation.InternalServerException- Information about an internal error.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.PrivateNetworksException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getDeviceIdentifier
default GetDeviceIdentifierResponse getDeviceIdentifier(GetDeviceIdentifierRequest getDeviceIdentifierRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, PrivateNetworksException
Gets the specified device identifier.
- Parameters:
getDeviceIdentifierRequest-- Returns:
- Result of the GetDeviceIdentifier operation returned by the service.
- Throws:
ResourceNotFoundException- The resource was not found.ValidationException- The request failed validation.InternalServerException- Information about an internal error.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.PrivateNetworksException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getDeviceIdentifier
default GetDeviceIdentifierResponse getDeviceIdentifier(Consumer<GetDeviceIdentifierRequest.Builder> getDeviceIdentifierRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, PrivateNetworksException
Gets the specified device identifier.
This is a convenience which creates an instance of the
GetDeviceIdentifierRequest.Builderavoiding the need to create one manually viaGetDeviceIdentifierRequest.builder()- Parameters:
getDeviceIdentifierRequest- AConsumerthat will call methods onGetDeviceIdentifierRequest.Builderto create a request.- Returns:
- Result of the GetDeviceIdentifier operation returned by the service.
- Throws:
ResourceNotFoundException- The resource was not found.ValidationException- The request failed validation.InternalServerException- Information about an internal error.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.PrivateNetworksException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getNetwork
default GetNetworkResponse getNetwork(GetNetworkRequest getNetworkRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, PrivateNetworksException
Gets the specified network.
- Parameters:
getNetworkRequest-- Returns:
- Result of the GetNetwork operation returned by the service.
- Throws:
ResourceNotFoundException- The resource was not found.ValidationException- The request failed validation.InternalServerException- Information about an internal error.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.PrivateNetworksException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getNetwork
default GetNetworkResponse getNetwork(Consumer<GetNetworkRequest.Builder> getNetworkRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, PrivateNetworksException
Gets the specified network.
This is a convenience which creates an instance of the
GetNetworkRequest.Builderavoiding the need to create one manually viaGetNetworkRequest.builder()- Parameters:
getNetworkRequest- AConsumerthat will call methods onGetNetworkRequest.Builderto create a request.- Returns:
- Result of the GetNetwork operation returned by the service.
- Throws:
ResourceNotFoundException- The resource was not found.ValidationException- The request failed validation.InternalServerException- Information about an internal error.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.PrivateNetworksException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getNetworkResource
default GetNetworkResourceResponse getNetworkResource(GetNetworkResourceRequest getNetworkResourceRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, PrivateNetworksException
Gets the specified network resource.
- Parameters:
getNetworkResourceRequest-- Returns:
- Result of the GetNetworkResource operation returned by the service.
- Throws:
ResourceNotFoundException- The resource was not found.ValidationException- The request failed validation.InternalServerException- Information about an internal error.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.PrivateNetworksException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getNetworkResource
default GetNetworkResourceResponse getNetworkResource(Consumer<GetNetworkResourceRequest.Builder> getNetworkResourceRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, PrivateNetworksException
Gets the specified network resource.
This is a convenience which creates an instance of the
GetNetworkResourceRequest.Builderavoiding the need to create one manually viaGetNetworkResourceRequest.builder()- Parameters:
getNetworkResourceRequest- AConsumerthat will call methods onGetNetworkResourceRequest.Builderto create a request.- Returns:
- Result of the GetNetworkResource operation returned by the service.
- Throws:
ResourceNotFoundException- The resource was not found.ValidationException- The request failed validation.InternalServerException- Information about an internal error.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.PrivateNetworksException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getNetworkSite
default GetNetworkSiteResponse getNetworkSite(GetNetworkSiteRequest getNetworkSiteRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, PrivateNetworksException
Gets the specified network site.
- Parameters:
getNetworkSiteRequest-- Returns:
- Result of the GetNetworkSite operation returned by the service.
- Throws:
ResourceNotFoundException- The resource was not found.ValidationException- The request failed validation.InternalServerException- Information about an internal error.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.PrivateNetworksException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getNetworkSite
default GetNetworkSiteResponse getNetworkSite(Consumer<GetNetworkSiteRequest.Builder> getNetworkSiteRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, PrivateNetworksException
Gets the specified network site.
This is a convenience which creates an instance of the
GetNetworkSiteRequest.Builderavoiding the need to create one manually viaGetNetworkSiteRequest.builder()- Parameters:
getNetworkSiteRequest- AConsumerthat will call methods onGetNetworkSiteRequest.Builderto create a request.- Returns:
- Result of the GetNetworkSite operation returned by the service.
- Throws:
ResourceNotFoundException- The resource was not found.ValidationException- The request failed validation.InternalServerException- Information about an internal error.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.PrivateNetworksException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getOrder
default GetOrderResponse getOrder(GetOrderRequest getOrderRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, PrivateNetworksException
Gets the specified order.
- Parameters:
getOrderRequest-- Returns:
- Result of the GetOrder operation returned by the service.
- Throws:
ResourceNotFoundException- The resource was not found.ValidationException- The request failed validation.InternalServerException- Information about an internal error.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.PrivateNetworksException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getOrder
default GetOrderResponse getOrder(Consumer<GetOrderRequest.Builder> getOrderRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, PrivateNetworksException
Gets the specified order.
This is a convenience which creates an instance of the
GetOrderRequest.Builderavoiding the need to create one manually viaGetOrderRequest.builder()- Parameters:
getOrderRequest- AConsumerthat will call methods onGetOrderRequest.Builderto create a request.- Returns:
- Result of the GetOrder operation returned by the service.
- Throws:
ResourceNotFoundException- The resource was not found.ValidationException- The request failed validation.InternalServerException- Information about an internal error.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.PrivateNetworksException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listDeviceIdentifiers
default ListDeviceIdentifiersResponse listDeviceIdentifiers(ListDeviceIdentifiersRequest listDeviceIdentifiersRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, PrivateNetworksException
Lists device identifiers. Add filters to your request to return a more specific list of results. Use filters to match the Amazon Resource Name (ARN) of an order, the status of device identifiers, or the ARN of the traffic group.
If you specify multiple filters, filters are joined with an OR, and the request returns results that match all of the specified filters.
- Parameters:
listDeviceIdentifiersRequest-- Returns:
- Result of the ListDeviceIdentifiers operation returned by the service.
- Throws:
ResourceNotFoundException- The resource was not found.ValidationException- The request failed validation.InternalServerException- Information about an internal error.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.PrivateNetworksException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listDeviceIdentifiers
default ListDeviceIdentifiersResponse listDeviceIdentifiers(Consumer<ListDeviceIdentifiersRequest.Builder> listDeviceIdentifiersRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, PrivateNetworksException
Lists device identifiers. Add filters to your request to return a more specific list of results. Use filters to match the Amazon Resource Name (ARN) of an order, the status of device identifiers, or the ARN of the traffic group.
If you specify multiple filters, filters are joined with an OR, and the request returns results that match all of the specified filters.
This is a convenience which creates an instance of the
ListDeviceIdentifiersRequest.Builderavoiding the need to create one manually viaListDeviceIdentifiersRequest.builder()- Parameters:
listDeviceIdentifiersRequest- AConsumerthat will call methods onListDeviceIdentifiersRequest.Builderto create a request.- Returns:
- Result of the ListDeviceIdentifiers operation returned by the service.
- Throws:
ResourceNotFoundException- The resource was not found.ValidationException- The request failed validation.InternalServerException- Information about an internal error.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.PrivateNetworksException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listDeviceIdentifiersPaginator
default ListDeviceIdentifiersIterable listDeviceIdentifiersPaginator(ListDeviceIdentifiersRequest listDeviceIdentifiersRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, PrivateNetworksException
This is a variant of
listDeviceIdentifiers(software.amazon.awssdk.services.privatenetworks.model.ListDeviceIdentifiersRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.privatenetworks.paginators.ListDeviceIdentifiersIterable responses = client.listDeviceIdentifiersPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.privatenetworks.paginators.ListDeviceIdentifiersIterable responses = client .listDeviceIdentifiersPaginator(request); for (software.amazon.awssdk.services.privatenetworks.model.ListDeviceIdentifiersResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.privatenetworks.paginators.ListDeviceIdentifiersIterable responses = client.listDeviceIdentifiersPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listDeviceIdentifiers(software.amazon.awssdk.services.privatenetworks.model.ListDeviceIdentifiersRequest)operation.- Parameters:
listDeviceIdentifiersRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ResourceNotFoundException- The resource was not found.ValidationException- The request failed validation.InternalServerException- Information about an internal error.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.PrivateNetworksException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listDeviceIdentifiersPaginator
default ListDeviceIdentifiersIterable listDeviceIdentifiersPaginator(Consumer<ListDeviceIdentifiersRequest.Builder> listDeviceIdentifiersRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, PrivateNetworksException
This is a variant of
listDeviceIdentifiers(software.amazon.awssdk.services.privatenetworks.model.ListDeviceIdentifiersRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.privatenetworks.paginators.ListDeviceIdentifiersIterable responses = client.listDeviceIdentifiersPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.privatenetworks.paginators.ListDeviceIdentifiersIterable responses = client .listDeviceIdentifiersPaginator(request); for (software.amazon.awssdk.services.privatenetworks.model.ListDeviceIdentifiersResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.privatenetworks.paginators.ListDeviceIdentifiersIterable responses = client.listDeviceIdentifiersPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listDeviceIdentifiers(software.amazon.awssdk.services.privatenetworks.model.ListDeviceIdentifiersRequest)operation.
This is a convenience which creates an instance of the
ListDeviceIdentifiersRequest.Builderavoiding the need to create one manually viaListDeviceIdentifiersRequest.builder()- Parameters:
listDeviceIdentifiersRequest- AConsumerthat will call methods onListDeviceIdentifiersRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ResourceNotFoundException- The resource was not found.ValidationException- The request failed validation.InternalServerException- Information about an internal error.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.PrivateNetworksException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listNetworkResources
default ListNetworkResourcesResponse listNetworkResources(ListNetworkResourcesRequest listNetworkResourcesRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, PrivateNetworksException
Lists network resources. Add filters to your request to return a more specific list of results. Use filters to match the Amazon Resource Name (ARN) of an order or the status of network resources.
If you specify multiple filters, filters are joined with an OR, and the request returns results that match all of the specified filters.
- Parameters:
listNetworkResourcesRequest-- Returns:
- Result of the ListNetworkResources operation returned by the service.
- Throws:
ResourceNotFoundException- The resource was not found.ValidationException- The request failed validation.InternalServerException- Information about an internal error.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.PrivateNetworksException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listNetworkResources
default ListNetworkResourcesResponse listNetworkResources(Consumer<ListNetworkResourcesRequest.Builder> listNetworkResourcesRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, PrivateNetworksException
Lists network resources. Add filters to your request to return a more specific list of results. Use filters to match the Amazon Resource Name (ARN) of an order or the status of network resources.
If you specify multiple filters, filters are joined with an OR, and the request returns results that match all of the specified filters.
This is a convenience which creates an instance of the
ListNetworkResourcesRequest.Builderavoiding the need to create one manually viaListNetworkResourcesRequest.builder()- Parameters:
listNetworkResourcesRequest- AConsumerthat will call methods onListNetworkResourcesRequest.Builderto create a request.- Returns:
- Result of the ListNetworkResources operation returned by the service.
- Throws:
ResourceNotFoundException- The resource was not found.ValidationException- The request failed validation.InternalServerException- Information about an internal error.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.PrivateNetworksException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listNetworkResourcesPaginator
default ListNetworkResourcesIterable listNetworkResourcesPaginator(ListNetworkResourcesRequest listNetworkResourcesRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, PrivateNetworksException
This is a variant of
listNetworkResources(software.amazon.awssdk.services.privatenetworks.model.ListNetworkResourcesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.privatenetworks.paginators.ListNetworkResourcesIterable responses = client.listNetworkResourcesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.privatenetworks.paginators.ListNetworkResourcesIterable responses = client .listNetworkResourcesPaginator(request); for (software.amazon.awssdk.services.privatenetworks.model.ListNetworkResourcesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.privatenetworks.paginators.ListNetworkResourcesIterable responses = client.listNetworkResourcesPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listNetworkResources(software.amazon.awssdk.services.privatenetworks.model.ListNetworkResourcesRequest)operation.- Parameters:
listNetworkResourcesRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ResourceNotFoundException- The resource was not found.ValidationException- The request failed validation.InternalServerException- Information about an internal error.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.PrivateNetworksException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listNetworkResourcesPaginator
default ListNetworkResourcesIterable listNetworkResourcesPaginator(Consumer<ListNetworkResourcesRequest.Builder> listNetworkResourcesRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, PrivateNetworksException
This is a variant of
listNetworkResources(software.amazon.awssdk.services.privatenetworks.model.ListNetworkResourcesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.privatenetworks.paginators.ListNetworkResourcesIterable responses = client.listNetworkResourcesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.privatenetworks.paginators.ListNetworkResourcesIterable responses = client .listNetworkResourcesPaginator(request); for (software.amazon.awssdk.services.privatenetworks.model.ListNetworkResourcesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.privatenetworks.paginators.ListNetworkResourcesIterable responses = client.listNetworkResourcesPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listNetworkResources(software.amazon.awssdk.services.privatenetworks.model.ListNetworkResourcesRequest)operation.
This is a convenience which creates an instance of the
ListNetworkResourcesRequest.Builderavoiding the need to create one manually viaListNetworkResourcesRequest.builder()- Parameters:
listNetworkResourcesRequest- AConsumerthat will call methods onListNetworkResourcesRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ResourceNotFoundException- The resource was not found.ValidationException- The request failed validation.InternalServerException- Information about an internal error.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.PrivateNetworksException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listNetworkSites
default ListNetworkSitesResponse listNetworkSites(ListNetworkSitesRequest listNetworkSitesRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, PrivateNetworksException
Lists network sites. Add filters to your request to return a more specific list of results. Use filters to match the status of the network site.
- Parameters:
listNetworkSitesRequest-- Returns:
- Result of the ListNetworkSites operation returned by the service.
- Throws:
ResourceNotFoundException- The resource was not found.ValidationException- The request failed validation.InternalServerException- Information about an internal error.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.PrivateNetworksException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listNetworkSites
default ListNetworkSitesResponse listNetworkSites(Consumer<ListNetworkSitesRequest.Builder> listNetworkSitesRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, PrivateNetworksException
Lists network sites. Add filters to your request to return a more specific list of results. Use filters to match the status of the network site.
This is a convenience which creates an instance of the
ListNetworkSitesRequest.Builderavoiding the need to create one manually viaListNetworkSitesRequest.builder()- Parameters:
listNetworkSitesRequest- AConsumerthat will call methods onListNetworkSitesRequest.Builderto create a request.- Returns:
- Result of the ListNetworkSites operation returned by the service.
- Throws:
ResourceNotFoundException- The resource was not found.ValidationException- The request failed validation.InternalServerException- Information about an internal error.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.PrivateNetworksException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listNetworkSitesPaginator
default ListNetworkSitesIterable listNetworkSitesPaginator(ListNetworkSitesRequest listNetworkSitesRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, PrivateNetworksException
This is a variant of
listNetworkSites(software.amazon.awssdk.services.privatenetworks.model.ListNetworkSitesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.privatenetworks.paginators.ListNetworkSitesIterable responses = client.listNetworkSitesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.privatenetworks.paginators.ListNetworkSitesIterable responses = client .listNetworkSitesPaginator(request); for (software.amazon.awssdk.services.privatenetworks.model.ListNetworkSitesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.privatenetworks.paginators.ListNetworkSitesIterable responses = client.listNetworkSitesPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listNetworkSites(software.amazon.awssdk.services.privatenetworks.model.ListNetworkSitesRequest)operation.- Parameters:
listNetworkSitesRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ResourceNotFoundException- The resource was not found.ValidationException- The request failed validation.InternalServerException- Information about an internal error.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.PrivateNetworksException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listNetworkSitesPaginator
default ListNetworkSitesIterable listNetworkSitesPaginator(Consumer<ListNetworkSitesRequest.Builder> listNetworkSitesRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, PrivateNetworksException
This is a variant of
listNetworkSites(software.amazon.awssdk.services.privatenetworks.model.ListNetworkSitesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.privatenetworks.paginators.ListNetworkSitesIterable responses = client.listNetworkSitesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.privatenetworks.paginators.ListNetworkSitesIterable responses = client .listNetworkSitesPaginator(request); for (software.amazon.awssdk.services.privatenetworks.model.ListNetworkSitesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.privatenetworks.paginators.ListNetworkSitesIterable responses = client.listNetworkSitesPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listNetworkSites(software.amazon.awssdk.services.privatenetworks.model.ListNetworkSitesRequest)operation.
This is a convenience which creates an instance of the
ListNetworkSitesRequest.Builderavoiding the need to create one manually viaListNetworkSitesRequest.builder()- Parameters:
listNetworkSitesRequest- AConsumerthat will call methods onListNetworkSitesRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ResourceNotFoundException- The resource was not found.ValidationException- The request failed validation.InternalServerException- Information about an internal error.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.PrivateNetworksException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listNetworks
default ListNetworksResponse listNetworks(ListNetworksRequest listNetworksRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, PrivateNetworksException
Lists networks. Add filters to your request to return a more specific list of results. Use filters to match the status of the network.
- Parameters:
listNetworksRequest-- Returns:
- Result of the ListNetworks operation returned by the service.
- Throws:
ResourceNotFoundException- The resource was not found.ValidationException- The request failed validation.InternalServerException- Information about an internal error.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.PrivateNetworksException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listNetworks
default ListNetworksResponse listNetworks(Consumer<ListNetworksRequest.Builder> listNetworksRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, PrivateNetworksException
Lists networks. Add filters to your request to return a more specific list of results. Use filters to match the status of the network.
This is a convenience which creates an instance of the
ListNetworksRequest.Builderavoiding the need to create one manually viaListNetworksRequest.builder()- Parameters:
listNetworksRequest- AConsumerthat will call methods onListNetworksRequest.Builderto create a request.- Returns:
- Result of the ListNetworks operation returned by the service.
- Throws:
ResourceNotFoundException- The resource was not found.ValidationException- The request failed validation.InternalServerException- Information about an internal error.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.PrivateNetworksException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listNetworksPaginator
default ListNetworksIterable listNetworksPaginator(ListNetworksRequest listNetworksRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, PrivateNetworksException
This is a variant of
listNetworks(software.amazon.awssdk.services.privatenetworks.model.ListNetworksRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.privatenetworks.paginators.ListNetworksIterable responses = client.listNetworksPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.privatenetworks.paginators.ListNetworksIterable responses = client .listNetworksPaginator(request); for (software.amazon.awssdk.services.privatenetworks.model.ListNetworksResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.privatenetworks.paginators.ListNetworksIterable responses = client.listNetworksPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listNetworks(software.amazon.awssdk.services.privatenetworks.model.ListNetworksRequest)operation.- Parameters:
listNetworksRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ResourceNotFoundException- The resource was not found.ValidationException- The request failed validation.InternalServerException- Information about an internal error.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.PrivateNetworksException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listNetworksPaginator
default ListNetworksIterable listNetworksPaginator(Consumer<ListNetworksRequest.Builder> listNetworksRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, PrivateNetworksException
This is a variant of
listNetworks(software.amazon.awssdk.services.privatenetworks.model.ListNetworksRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.privatenetworks.paginators.ListNetworksIterable responses = client.listNetworksPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.privatenetworks.paginators.ListNetworksIterable responses = client .listNetworksPaginator(request); for (software.amazon.awssdk.services.privatenetworks.model.ListNetworksResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.privatenetworks.paginators.ListNetworksIterable responses = client.listNetworksPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listNetworks(software.amazon.awssdk.services.privatenetworks.model.ListNetworksRequest)operation.
This is a convenience which creates an instance of the
ListNetworksRequest.Builderavoiding the need to create one manually viaListNetworksRequest.builder()- Parameters:
listNetworksRequest- AConsumerthat will call methods onListNetworksRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ResourceNotFoundException- The resource was not found.ValidationException- The request failed validation.InternalServerException- Information about an internal error.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.PrivateNetworksException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listOrders
default ListOrdersResponse listOrders(ListOrdersRequest listOrdersRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, PrivateNetworksException
Lists orders. Add filters to your request to return a more specific list of results. Use filters to match the Amazon Resource Name (ARN) of the network site or the status of the order.
If you specify multiple filters, filters are joined with an OR, and the request returns results that match all of the specified filters.
- Parameters:
listOrdersRequest-- Returns:
- Result of the ListOrders operation returned by the service.
- Throws:
ResourceNotFoundException- The resource was not found.ValidationException- The request failed validation.InternalServerException- Information about an internal error.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.PrivateNetworksException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listOrders
default ListOrdersResponse listOrders(Consumer<ListOrdersRequest.Builder> listOrdersRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, PrivateNetworksException
Lists orders. Add filters to your request to return a more specific list of results. Use filters to match the Amazon Resource Name (ARN) of the network site or the status of the order.
If you specify multiple filters, filters are joined with an OR, and the request returns results that match all of the specified filters.
This is a convenience which creates an instance of the
ListOrdersRequest.Builderavoiding the need to create one manually viaListOrdersRequest.builder()- Parameters:
listOrdersRequest- AConsumerthat will call methods onListOrdersRequest.Builderto create a request.- Returns:
- Result of the ListOrders operation returned by the service.
- Throws:
ResourceNotFoundException- The resource was not found.ValidationException- The request failed validation.InternalServerException- Information about an internal error.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.PrivateNetworksException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listOrdersPaginator
default ListOrdersIterable listOrdersPaginator(ListOrdersRequest listOrdersRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, PrivateNetworksException
This is a variant of
listOrders(software.amazon.awssdk.services.privatenetworks.model.ListOrdersRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.privatenetworks.paginators.ListOrdersIterable responses = client.listOrdersPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.privatenetworks.paginators.ListOrdersIterable responses = client.listOrdersPaginator(request); for (software.amazon.awssdk.services.privatenetworks.model.ListOrdersResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.privatenetworks.paginators.ListOrdersIterable responses = client.listOrdersPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listOrders(software.amazon.awssdk.services.privatenetworks.model.ListOrdersRequest)operation.- Parameters:
listOrdersRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ResourceNotFoundException- The resource was not found.ValidationException- The request failed validation.InternalServerException- Information about an internal error.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.PrivateNetworksException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listOrdersPaginator
default ListOrdersIterable listOrdersPaginator(Consumer<ListOrdersRequest.Builder> listOrdersRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, PrivateNetworksException
This is a variant of
listOrders(software.amazon.awssdk.services.privatenetworks.model.ListOrdersRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.privatenetworks.paginators.ListOrdersIterable responses = client.listOrdersPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.privatenetworks.paginators.ListOrdersIterable responses = client.listOrdersPaginator(request); for (software.amazon.awssdk.services.privatenetworks.model.ListOrdersResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.privatenetworks.paginators.ListOrdersIterable responses = client.listOrdersPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listOrders(software.amazon.awssdk.services.privatenetworks.model.ListOrdersRequest)operation.
This is a convenience which creates an instance of the
ListOrdersRequest.Builderavoiding the need to create one manually viaListOrdersRequest.builder()- Parameters:
listOrdersRequest- AConsumerthat will call methods onListOrdersRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ResourceNotFoundException- The resource was not found.ValidationException- The request failed validation.InternalServerException- Information about an internal error.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.PrivateNetworksException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, PrivateNetworksException
Lists the tags for the specified resource.
- Parameters:
listTagsForResourceRequest-- Returns:
- Result of the ListTagsForResource operation returned by the service.
- Throws:
ResourceNotFoundException- The resource was not found.AccessDeniedException- You do not have permission to perform this operation.ValidationException- The request failed validation.InternalServerException- Information about an internal error.ThrottlingException- The request was denied due to request throttling.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.PrivateNetworksException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, PrivateNetworksException
Lists the tags for the specified resource.
This is a convenience which creates an instance of the
ListTagsForResourceRequest.Builderavoiding the need to create one manually viaListTagsForResourceRequest.builder()- Parameters:
listTagsForResourceRequest- AConsumerthat will call methods onListTagsForResourceRequest.Builderto create a request.- Returns:
- Result of the ListTagsForResource operation returned by the service.
- Throws:
ResourceNotFoundException- The resource was not found.AccessDeniedException- You do not have permission to perform this operation.ValidationException- The request failed validation.InternalServerException- Information about an internal error.ThrottlingException- The request was denied due to request throttling.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.PrivateNetworksException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
ping
default PingResponse ping(PingRequest pingRequest) throws InternalServerException, AwsServiceException, SdkClientException, PrivateNetworksException
Checks the health of the service.
- Parameters:
pingRequest-- Returns:
- Result of the Ping operation returned by the service.
- Throws:
InternalServerException- Information about an internal error.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.PrivateNetworksException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
ping
default PingResponse ping(Consumer<PingRequest.Builder> pingRequest) throws InternalServerException, AwsServiceException, SdkClientException, PrivateNetworksException
Checks the health of the service.
This is a convenience which creates an instance of the
PingRequest.Builderavoiding the need to create one manually viaPingRequest.builder()- Parameters:
pingRequest- AConsumerthat will call methods onPingRequest.Builderto create a request.- Returns:
- Result of the Ping operation returned by the service.
- Throws:
InternalServerException- Information about an internal error.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.PrivateNetworksException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
startNetworkResourceUpdate
default StartNetworkResourceUpdateResponse startNetworkResourceUpdate(StartNetworkResourceUpdateRequest startNetworkResourceUpdateRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, PrivateNetworksException
Use this action to do the following tasks:
-
Update the duration and renewal status of the commitment period for a radio unit. The update goes into effect immediately.
-
Request a replacement for a network resource.
-
Request that you return a network resource.
After you submit a request to replace or return a network resource, the status of the network resource changes to
CREATING_SHIPPING_LABEL. The shipping label is available when the status of the network resource isPENDING_RETURN. After the network resource is successfully returned, its status changes toDELETED. For more information, see Return a radio unit.- Parameters:
startNetworkResourceUpdateRequest-- Returns:
- Result of the StartNetworkResourceUpdate operation returned by the service.
- Throws:
ResourceNotFoundException- The resource was not found.ValidationException- The request failed validation.InternalServerException- Information about an internal error.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.PrivateNetworksException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
-
startNetworkResourceUpdate
default StartNetworkResourceUpdateResponse startNetworkResourceUpdate(Consumer<StartNetworkResourceUpdateRequest.Builder> startNetworkResourceUpdateRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, PrivateNetworksException
Use this action to do the following tasks:
-
Update the duration and renewal status of the commitment period for a radio unit. The update goes into effect immediately.
-
Request a replacement for a network resource.
-
Request that you return a network resource.
After you submit a request to replace or return a network resource, the status of the network resource changes to
CREATING_SHIPPING_LABEL. The shipping label is available when the status of the network resource isPENDING_RETURN. After the network resource is successfully returned, its status changes toDELETED. For more information, see Return a radio unit.
This is a convenience which creates an instance of the
StartNetworkResourceUpdateRequest.Builderavoiding the need to create one manually viaStartNetworkResourceUpdateRequest.builder()- Parameters:
startNetworkResourceUpdateRequest- AConsumerthat will call methods onStartNetworkResourceUpdateRequest.Builderto create a request.- Returns:
- Result of the StartNetworkResourceUpdate operation returned by the service.
- Throws:
ResourceNotFoundException- The resource was not found.ValidationException- The request failed validation.InternalServerException- Information about an internal error.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.PrivateNetworksException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
-
tagResource
default TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, PrivateNetworksException
Adds tags to the specified resource.
- Parameters:
tagResourceRequest-- Returns:
- Result of the TagResource operation returned by the service.
- Throws:
ResourceNotFoundException- The resource was not found.AccessDeniedException- You do not have permission to perform this operation.ValidationException- The request failed validation.InternalServerException- Information about an internal error.ThrottlingException- The request was denied due to request throttling.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.PrivateNetworksException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
tagResource
default TagResourceResponse tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, PrivateNetworksException
Adds tags to the specified resource.
This is a convenience which creates an instance of the
TagResourceRequest.Builderavoiding the need to create one manually viaTagResourceRequest.builder()- Parameters:
tagResourceRequest- AConsumerthat will call methods onTagResourceRequest.Builderto create a request.- Returns:
- Result of the TagResource operation returned by the service.
- Throws:
ResourceNotFoundException- The resource was not found.AccessDeniedException- You do not have permission to perform this operation.ValidationException- The request failed validation.InternalServerException- Information about an internal error.ThrottlingException- The request was denied due to request throttling.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.PrivateNetworksException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
untagResource
default UntagResourceResponse untagResource(UntagResourceRequest untagResourceRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, PrivateNetworksException
Removes tags from the specified resource.
- Parameters:
untagResourceRequest-- Returns:
- Result of the UntagResource operation returned by the service.
- Throws:
ResourceNotFoundException- The resource was not found.AccessDeniedException- You do not have permission to perform this operation.ValidationException- The request failed validation.InternalServerException- Information about an internal error.ThrottlingException- The request was denied due to request throttling.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.PrivateNetworksException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
untagResource
default UntagResourceResponse untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) throws ResourceNotFoundException, AccessDeniedException, ValidationException, InternalServerException, ThrottlingException, AwsServiceException, SdkClientException, PrivateNetworksException
Removes tags from the specified resource.
This is a convenience which creates an instance of the
UntagResourceRequest.Builderavoiding the need to create one manually viaUntagResourceRequest.builder()- Parameters:
untagResourceRequest- AConsumerthat will call methods onUntagResourceRequest.Builderto create a request.- Returns:
- Result of the UntagResource operation returned by the service.
- Throws:
ResourceNotFoundException- The resource was not found.AccessDeniedException- You do not have permission to perform this operation.ValidationException- The request failed validation.InternalServerException- Information about an internal error.ThrottlingException- The request was denied due to request throttling.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.PrivateNetworksException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
updateNetworkSite
default UpdateNetworkSiteResponse updateNetworkSite(UpdateNetworkSiteRequest updateNetworkSiteRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, PrivateNetworksException
Updates the specified network site.
- Parameters:
updateNetworkSiteRequest-- Returns:
- Result of the UpdateNetworkSite operation returned by the service.
- Throws:
ResourceNotFoundException- The resource was not found.ValidationException- The request failed validation.InternalServerException- Information about an internal error.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.PrivateNetworksException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
updateNetworkSite
default UpdateNetworkSiteResponse updateNetworkSite(Consumer<UpdateNetworkSiteRequest.Builder> updateNetworkSiteRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, PrivateNetworksException
Updates the specified network site.
This is a convenience which creates an instance of the
UpdateNetworkSiteRequest.Builderavoiding the need to create one manually viaUpdateNetworkSiteRequest.builder()- Parameters:
updateNetworkSiteRequest- AConsumerthat will call methods onUpdateNetworkSiteRequest.Builderto create a request.- Returns:
- Result of the UpdateNetworkSite operation returned by the service.
- Throws:
ResourceNotFoundException- The resource was not found.ValidationException- The request failed validation.InternalServerException- Information about an internal error.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.PrivateNetworksException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
updateNetworkSitePlan
default UpdateNetworkSitePlanResponse updateNetworkSitePlan(UpdateNetworkSitePlanRequest updateNetworkSitePlanRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, PrivateNetworksException
Updates the specified network site plan.
- Parameters:
updateNetworkSitePlanRequest-- Returns:
- Result of the UpdateNetworkSitePlan operation returned by the service.
- Throws:
ResourceNotFoundException- The resource was not found.ValidationException- The request failed validation.InternalServerException- Information about an internal error.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.PrivateNetworksException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
updateNetworkSitePlan
default UpdateNetworkSitePlanResponse updateNetworkSitePlan(Consumer<UpdateNetworkSitePlanRequest.Builder> updateNetworkSitePlanRequest) throws ResourceNotFoundException, ValidationException, InternalServerException, AwsServiceException, SdkClientException, PrivateNetworksException
Updates the specified network site plan.
This is a convenience which creates an instance of the
UpdateNetworkSitePlanRequest.Builderavoiding the need to create one manually viaUpdateNetworkSitePlanRequest.builder()- Parameters:
updateNetworkSitePlanRequest- AConsumerthat will call methods onUpdateNetworkSitePlanRequest.Builderto create a request.- Returns:
- Result of the UpdateNetworkSitePlan operation returned by the service.
- Throws:
ResourceNotFoundException- The resource was not found.ValidationException- The request failed validation.InternalServerException- Information about an internal error.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.PrivateNetworksException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
create
static PrivateNetworksClient create()
Create aPrivateNetworksClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.
-
builder
static PrivateNetworksClientBuilder builder()
Create a builder that can be used to configure and create aPrivateNetworksClient.
-
serviceMetadata
static ServiceMetadata serviceMetadata()
-
serviceClientConfiguration
default PrivateNetworksServiceClientConfiguration serviceClientConfiguration()
- Specified by:
serviceClientConfigurationin interfaceAwsClient- Specified by:
serviceClientConfigurationin interfaceSdkClient
-
-