Interface ArtifactClient
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
builder() method.
This reference provides descriptions of the low-level AWS Artifact Service API.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringValue for looking up the service's metadata from theServiceMetadataProvider.static final String -
Method Summary
Modifier and TypeMethodDescriptionstatic ArtifactClientBuilderbuilder()Create a builder that can be used to configure and create aArtifactClient.static ArtifactClientcreate()Create aArtifactClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.default CreateComplianceInquiryResponsecreateComplianceInquiry(Consumer<CreateComplianceInquiryRequest.Builder> createComplianceInquiryRequest) Create a new compliance inquiry.default CreateComplianceInquiryResponsecreateComplianceInquiry(CreateComplianceInquiryRequest createComplianceInquiryRequest) Create a new compliance inquiry.default ExportComplianceInquiryResponseexportComplianceInquiry(Consumer<ExportComplianceInquiryRequest.Builder> exportComplianceInquiryRequest) Export a compliance inquiry report.default ExportComplianceInquiryResponseexportComplianceInquiry(ExportComplianceInquiryRequest exportComplianceInquiryRequest) Export a compliance inquiry report.default GetAccountSettingsResponsegetAccountSettings(Consumer<GetAccountSettingsRequest.Builder> getAccountSettingsRequest) Get the account settings for Artifact.default GetAccountSettingsResponsegetAccountSettings(GetAccountSettingsRequest getAccountSettingsRequest) Get the account settings for Artifact.getComplianceInquiryMetadata(Consumer<GetComplianceInquiryMetadataRequest.Builder> getComplianceInquiryMetadataRequest) Get the metadata for a single compliance inquiry.getComplianceInquiryMetadata(GetComplianceInquiryMetadataRequest getComplianceInquiryMetadataRequest) Get the metadata for a single compliance inquiry.default GetReportResponsegetReport(Consumer<GetReportRequest.Builder> getReportRequest) Get the content for a single report.default GetReportResponsegetReport(GetReportRequest getReportRequest) Get the content for a single report.default GetReportMetadataResponsegetReportMetadata(Consumer<GetReportMetadataRequest.Builder> getReportMetadataRequest) Get the metadata for a single report.default GetReportMetadataResponsegetReportMetadata(GetReportMetadataRequest getReportMetadataRequest) Get the metadata for a single report.default GetTermForReportResponsegetTermForReport(Consumer<GetTermForReportRequest.Builder> getTermForReportRequest) Get the Term content associated with a single report.default GetTermForReportResponsegetTermForReport(GetTermForReportRequest getTermForReportRequest) Get the Term content associated with a single report.default ListComplianceInquiriesResponselistComplianceInquiries(Consumer<ListComplianceInquiriesRequest.Builder> listComplianceInquiriesRequest) List available compliance inquiries.default ListComplianceInquiriesResponselistComplianceInquiries(ListComplianceInquiriesRequest listComplianceInquiriesRequest) List available compliance inquiries.default ListComplianceInquiriesIterablelistComplianceInquiriesPaginator(Consumer<ListComplianceInquiriesRequest.Builder> listComplianceInquiriesRequest) This is a variant oflistComplianceInquiries(software.amazon.awssdk.services.artifact.model.ListComplianceInquiriesRequest)operation.default ListComplianceInquiriesIterablelistComplianceInquiriesPaginator(ListComplianceInquiriesRequest listComplianceInquiriesRequest) This is a variant oflistComplianceInquiries(software.amazon.awssdk.services.artifact.model.ListComplianceInquiriesRequest)operation.listComplianceInquiryQueries(Consumer<ListComplianceInquiryQueriesRequest.Builder> listComplianceInquiryQueriesRequest) List queries within a compliance inquiry.listComplianceInquiryQueries(ListComplianceInquiryQueriesRequest listComplianceInquiryQueriesRequest) List queries within a compliance inquiry.listComplianceInquiryQueriesPaginator(Consumer<ListComplianceInquiryQueriesRequest.Builder> listComplianceInquiryQueriesRequest) This is a variant oflistComplianceInquiryQueries(software.amazon.awssdk.services.artifact.model.ListComplianceInquiryQueriesRequest)operation.listComplianceInquiryQueriesPaginator(ListComplianceInquiryQueriesRequest listComplianceInquiryQueriesRequest) This is a variant oflistComplianceInquiryQueries(software.amazon.awssdk.services.artifact.model.ListComplianceInquiryQueriesRequest)operation.default ListCustomerAgreementsResponselistCustomerAgreements(Consumer<ListCustomerAgreementsRequest.Builder> listCustomerAgreementsRequest) List active customer-agreements applicable to calling identity.default ListCustomerAgreementsResponselistCustomerAgreements(ListCustomerAgreementsRequest listCustomerAgreementsRequest) List active customer-agreements applicable to calling identity.default ListCustomerAgreementsIterablelistCustomerAgreementsPaginator(Consumer<ListCustomerAgreementsRequest.Builder> listCustomerAgreementsRequest) This is a variant oflistCustomerAgreements(software.amazon.awssdk.services.artifact.model.ListCustomerAgreementsRequest)operation.default ListCustomerAgreementsIterablelistCustomerAgreementsPaginator(ListCustomerAgreementsRequest listCustomerAgreementsRequest) This is a variant oflistCustomerAgreements(software.amazon.awssdk.services.artifact.model.ListCustomerAgreementsRequest)operation.default ListReportsResponselistReports(Consumer<ListReportsRequest.Builder> listReportsRequest) List available reports.default ListReportsResponselistReports(ListReportsRequest listReportsRequest) List available reports.default ListReportsIterablelistReportsPaginator(Consumer<ListReportsRequest.Builder> listReportsRequest) This is a variant oflistReports(software.amazon.awssdk.services.artifact.model.ListReportsRequest)operation.default ListReportsIterablelistReportsPaginator(ListReportsRequest listReportsRequest) This is a variant oflistReports(software.amazon.awssdk.services.artifact.model.ListReportsRequest)operation.default ListReportVersionsResponselistReportVersions(Consumer<ListReportVersionsRequest.Builder> listReportVersionsRequest) List available report versions for a given report.default ListReportVersionsResponselistReportVersions(ListReportVersionsRequest listReportVersionsRequest) List available report versions for a given report.default ListReportVersionsIterablelistReportVersionsPaginator(Consumer<ListReportVersionsRequest.Builder> listReportVersionsRequest) This is a variant oflistReportVersions(software.amazon.awssdk.services.artifact.model.ListReportVersionsRequest)operation.default ListReportVersionsIterablelistReportVersionsPaginator(ListReportVersionsRequest listReportVersionsRequest) This is a variant oflistReportVersions(software.amazon.awssdk.services.artifact.model.ListReportVersionsRequest)operation.default ListTagsForResourceResponselistTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) List tags for a resource.default ListTagsForResourceResponselistTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) List tags for a resource.default PutAccountSettingsResponseputAccountSettings(Consumer<PutAccountSettingsRequest.Builder> putAccountSettingsRequest) Put the account settings for Artifact.default PutAccountSettingsResponseputAccountSettings(PutAccountSettingsRequest putAccountSettingsRequest) Put the account settings for Artifact.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationstatic ServiceMetadatadefault TagResourceResponsetagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) Add tags to a resource.default TagResourceResponsetagResource(TagResourceRequest tagResourceRequest) Add tags to a resource.default UntagResourceResponseuntagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Remove tags from a resource.default UntagResourceResponseuntagResource(UntagResourceRequest untagResourceRequest) Remove tags from a resource.Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
closeMethods inherited from interface software.amazon.awssdk.core.SdkClient
serviceName
-
Field Details
-
SERVICE_NAME
- See Also:
-
SERVICE_METADATA_ID
Value for looking up the service's metadata from theServiceMetadataProvider.- See Also:
-
-
Method Details
-
createComplianceInquiry
default CreateComplianceInquiryResponse createComplianceInquiry(CreateComplianceInquiryRequest createComplianceInquiryRequest) throws ThrottlingException, AccessDeniedException, ConflictException, InternalServerException, ValidationException, AwsServiceException, SdkClientException, ArtifactException Create a new compliance inquiry.
- Parameters:
createComplianceInquiryRequest-- Returns:
- Result of the CreateComplianceInquiry operation returned by the service.
- See Also:
-
createComplianceInquiry
default CreateComplianceInquiryResponse createComplianceInquiry(Consumer<CreateComplianceInquiryRequest.Builder> createComplianceInquiryRequest) throws ThrottlingException, AccessDeniedException, ConflictException, InternalServerException, ValidationException, AwsServiceException, SdkClientException, ArtifactException Create a new compliance inquiry.
This is a convenience which creates an instance of the
CreateComplianceInquiryRequest.Builderavoiding the need to create one manually viaCreateComplianceInquiryRequest.builder()- Parameters:
createComplianceInquiryRequest- AConsumerthat will call methods onCreateComplianceInquiryRequest.Builderto create a request.- Returns:
- Result of the CreateComplianceInquiry operation returned by the service.
- See Also:
-
exportComplianceInquiry
default ExportComplianceInquiryResponse exportComplianceInquiry(ExportComplianceInquiryRequest exportComplianceInquiryRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, InternalServerException, ValidationException, AwsServiceException, SdkClientException, ArtifactException Export a compliance inquiry report.
- Parameters:
exportComplianceInquiryRequest-- Returns:
- Result of the ExportComplianceInquiry operation returned by the service.
- See Also:
-
exportComplianceInquiry
default ExportComplianceInquiryResponse exportComplianceInquiry(Consumer<ExportComplianceInquiryRequest.Builder> exportComplianceInquiryRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, InternalServerException, ValidationException, AwsServiceException, SdkClientException, ArtifactException Export a compliance inquiry report.
This is a convenience which creates an instance of the
ExportComplianceInquiryRequest.Builderavoiding the need to create one manually viaExportComplianceInquiryRequest.builder()- Parameters:
exportComplianceInquiryRequest- AConsumerthat will call methods onExportComplianceInquiryRequest.Builderto create a request.- Returns:
- Result of the ExportComplianceInquiry operation returned by the service.
- See Also:
-
getAccountSettings
default GetAccountSettingsResponse getAccountSettings(GetAccountSettingsRequest getAccountSettingsRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ConflictException, InternalServerException, ValidationException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ArtifactException Get the account settings for Artifact.
- Parameters:
getAccountSettingsRequest-- Returns:
- Result of the GetAccountSettings operation returned by the service.
- See Also:
-
getAccountSettings
default GetAccountSettingsResponse getAccountSettings(Consumer<GetAccountSettingsRequest.Builder> getAccountSettingsRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ConflictException, InternalServerException, ValidationException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ArtifactException Get the account settings for Artifact.
This is a convenience which creates an instance of the
GetAccountSettingsRequest.Builderavoiding the need to create one manually viaGetAccountSettingsRequest.builder()- Parameters:
getAccountSettingsRequest- AConsumerthat will call methods onGetAccountSettingsRequest.Builderto create a request.- Returns:
- Result of the GetAccountSettings operation returned by the service.
- See Also:
-
getComplianceInquiryMetadata
default GetComplianceInquiryMetadataResponse getComplianceInquiryMetadata(GetComplianceInquiryMetadataRequest getComplianceInquiryMetadataRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, InternalServerException, ValidationException, AwsServiceException, SdkClientException, ArtifactException Get the metadata for a single compliance inquiry.
- Parameters:
getComplianceInquiryMetadataRequest-- Returns:
- Result of the GetComplianceInquiryMetadata operation returned by the service.
- See Also:
-
getComplianceInquiryMetadata
default GetComplianceInquiryMetadataResponse getComplianceInquiryMetadata(Consumer<GetComplianceInquiryMetadataRequest.Builder> getComplianceInquiryMetadataRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, InternalServerException, ValidationException, AwsServiceException, SdkClientException, ArtifactException Get the metadata for a single compliance inquiry.
This is a convenience which creates an instance of the
GetComplianceInquiryMetadataRequest.Builderavoiding the need to create one manually viaGetComplianceInquiryMetadataRequest.builder()- Parameters:
getComplianceInquiryMetadataRequest- AConsumerthat will call methods onGetComplianceInquiryMetadataRequest.Builderto create a request.- Returns:
- Result of the GetComplianceInquiryMetadata operation returned by the service.
- See Also:
-
getReport
default GetReportResponse getReport(GetReportRequest getReportRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ConflictException, InternalServerException, ValidationException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ArtifactException Get the content for a single report.
- Parameters:
getReportRequest-- Returns:
- Result of the GetReport operation returned by the service.
- See Also:
-
getReport
default GetReportResponse getReport(Consumer<GetReportRequest.Builder> getReportRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ConflictException, InternalServerException, ValidationException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ArtifactException Get the content for a single report.
This is a convenience which creates an instance of the
GetReportRequest.Builderavoiding the need to create one manually viaGetReportRequest.builder()- Parameters:
getReportRequest- AConsumerthat will call methods onGetReportRequest.Builderto create a request.- Returns:
- Result of the GetReport operation returned by the service.
- See Also:
-
getReportMetadata
default GetReportMetadataResponse getReportMetadata(GetReportMetadataRequest getReportMetadataRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, InternalServerException, ValidationException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ArtifactException Get the metadata for a single report.
- Parameters:
getReportMetadataRequest-- Returns:
- Result of the GetReportMetadata operation returned by the service.
- See Also:
-
getReportMetadata
default GetReportMetadataResponse getReportMetadata(Consumer<GetReportMetadataRequest.Builder> getReportMetadataRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, InternalServerException, ValidationException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ArtifactException Get the metadata for a single report.
This is a convenience which creates an instance of the
GetReportMetadataRequest.Builderavoiding the need to create one manually viaGetReportMetadataRequest.builder()- Parameters:
getReportMetadataRequest- AConsumerthat will call methods onGetReportMetadataRequest.Builderto create a request.- Returns:
- Result of the GetReportMetadata operation returned by the service.
- See Also:
-
getTermForReport
default GetTermForReportResponse getTermForReport(GetTermForReportRequest getTermForReportRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ConflictException, InternalServerException, ValidationException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ArtifactException Get the Term content associated with a single report.
- Parameters:
getTermForReportRequest-- Returns:
- Result of the GetTermForReport operation returned by the service.
- See Also:
-
getTermForReport
default GetTermForReportResponse getTermForReport(Consumer<GetTermForReportRequest.Builder> getTermForReportRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ConflictException, InternalServerException, ValidationException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ArtifactException Get the Term content associated with a single report.
This is a convenience which creates an instance of the
GetTermForReportRequest.Builderavoiding the need to create one manually viaGetTermForReportRequest.builder()- Parameters:
getTermForReportRequest- AConsumerthat will call methods onGetTermForReportRequest.Builderto create a request.- Returns:
- Result of the GetTermForReport operation returned by the service.
- See Also:
-
listComplianceInquiries
default ListComplianceInquiriesResponse listComplianceInquiries(ListComplianceInquiriesRequest listComplianceInquiriesRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, InternalServerException, ValidationException, AwsServiceException, SdkClientException, ArtifactException List available compliance inquiries.
- Parameters:
listComplianceInquiriesRequest-- Returns:
- Result of the ListComplianceInquiries operation returned by the service.
- See Also:
-
listComplianceInquiries
default ListComplianceInquiriesResponse listComplianceInquiries(Consumer<ListComplianceInquiriesRequest.Builder> listComplianceInquiriesRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, InternalServerException, ValidationException, AwsServiceException, SdkClientException, ArtifactException List available compliance inquiries.
This is a convenience which creates an instance of the
ListComplianceInquiriesRequest.Builderavoiding the need to create one manually viaListComplianceInquiriesRequest.builder()- Parameters:
listComplianceInquiriesRequest- AConsumerthat will call methods onListComplianceInquiriesRequest.Builderto create a request.- Returns:
- Result of the ListComplianceInquiries operation returned by the service.
- See Also:
-
listComplianceInquiriesPaginator
default ListComplianceInquiriesIterable listComplianceInquiriesPaginator(ListComplianceInquiriesRequest listComplianceInquiriesRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, InternalServerException, ValidationException, AwsServiceException, SdkClientException, ArtifactException This is a variant of
listComplianceInquiries(software.amazon.awssdk.services.artifact.model.ListComplianceInquiriesRequest)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.artifact.paginators.ListComplianceInquiriesIterable responses = client.listComplianceInquiriesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.artifact.paginators.ListComplianceInquiriesIterable responses = client .listComplianceInquiriesPaginator(request); for (software.amazon.awssdk.services.artifact.model.ListComplianceInquiriesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.artifact.paginators.ListComplianceInquiriesIterable responses = client.listComplianceInquiriesPaginator(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
listComplianceInquiries(software.amazon.awssdk.services.artifact.model.ListComplianceInquiriesRequest)operation.- Parameters:
listComplianceInquiriesRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listComplianceInquiriesPaginator
default ListComplianceInquiriesIterable listComplianceInquiriesPaginator(Consumer<ListComplianceInquiriesRequest.Builder> listComplianceInquiriesRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, InternalServerException, ValidationException, AwsServiceException, SdkClientException, ArtifactException This is a variant of
listComplianceInquiries(software.amazon.awssdk.services.artifact.model.ListComplianceInquiriesRequest)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.artifact.paginators.ListComplianceInquiriesIterable responses = client.listComplianceInquiriesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.artifact.paginators.ListComplianceInquiriesIterable responses = client .listComplianceInquiriesPaginator(request); for (software.amazon.awssdk.services.artifact.model.ListComplianceInquiriesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.artifact.paginators.ListComplianceInquiriesIterable responses = client.listComplianceInquiriesPaginator(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
listComplianceInquiries(software.amazon.awssdk.services.artifact.model.ListComplianceInquiriesRequest)operation.
This is a convenience which creates an instance of the
ListComplianceInquiriesRequest.Builderavoiding the need to create one manually viaListComplianceInquiriesRequest.builder()- Parameters:
listComplianceInquiriesRequest- AConsumerthat will call methods onListComplianceInquiriesRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listComplianceInquiryQueries
default ListComplianceInquiryQueriesResponse listComplianceInquiryQueries(ListComplianceInquiryQueriesRequest listComplianceInquiryQueriesRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, InternalServerException, ValidationException, AwsServiceException, SdkClientException, ArtifactException List queries within a compliance inquiry.
- Parameters:
listComplianceInquiryQueriesRequest-- Returns:
- Result of the ListComplianceInquiryQueries operation returned by the service.
- See Also:
-
listComplianceInquiryQueries
default ListComplianceInquiryQueriesResponse listComplianceInquiryQueries(Consumer<ListComplianceInquiryQueriesRequest.Builder> listComplianceInquiryQueriesRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, InternalServerException, ValidationException, AwsServiceException, SdkClientException, ArtifactException List queries within a compliance inquiry.
This is a convenience which creates an instance of the
ListComplianceInquiryQueriesRequest.Builderavoiding the need to create one manually viaListComplianceInquiryQueriesRequest.builder()- Parameters:
listComplianceInquiryQueriesRequest- AConsumerthat will call methods onListComplianceInquiryQueriesRequest.Builderto create a request.- Returns:
- Result of the ListComplianceInquiryQueries operation returned by the service.
- See Also:
-
listComplianceInquiryQueriesPaginator
default ListComplianceInquiryQueriesIterable listComplianceInquiryQueriesPaginator(ListComplianceInquiryQueriesRequest listComplianceInquiryQueriesRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, InternalServerException, ValidationException, AwsServiceException, SdkClientException, ArtifactException This is a variant of
listComplianceInquiryQueries(software.amazon.awssdk.services.artifact.model.ListComplianceInquiryQueriesRequest)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.artifact.paginators.ListComplianceInquiryQueriesIterable responses = client.listComplianceInquiryQueriesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.artifact.paginators.ListComplianceInquiryQueriesIterable responses = client .listComplianceInquiryQueriesPaginator(request); for (software.amazon.awssdk.services.artifact.model.ListComplianceInquiryQueriesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.artifact.paginators.ListComplianceInquiryQueriesIterable responses = client.listComplianceInquiryQueriesPaginator(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
listComplianceInquiryQueries(software.amazon.awssdk.services.artifact.model.ListComplianceInquiryQueriesRequest)operation.- Parameters:
listComplianceInquiryQueriesRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listComplianceInquiryQueriesPaginator
default ListComplianceInquiryQueriesIterable listComplianceInquiryQueriesPaginator(Consumer<ListComplianceInquiryQueriesRequest.Builder> listComplianceInquiryQueriesRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, InternalServerException, ValidationException, AwsServiceException, SdkClientException, ArtifactException This is a variant of
listComplianceInquiryQueries(software.amazon.awssdk.services.artifact.model.ListComplianceInquiryQueriesRequest)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.artifact.paginators.ListComplianceInquiryQueriesIterable responses = client.listComplianceInquiryQueriesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.artifact.paginators.ListComplianceInquiryQueriesIterable responses = client .listComplianceInquiryQueriesPaginator(request); for (software.amazon.awssdk.services.artifact.model.ListComplianceInquiryQueriesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.artifact.paginators.ListComplianceInquiryQueriesIterable responses = client.listComplianceInquiryQueriesPaginator(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
listComplianceInquiryQueries(software.amazon.awssdk.services.artifact.model.ListComplianceInquiryQueriesRequest)operation.
This is a convenience which creates an instance of the
ListComplianceInquiryQueriesRequest.Builderavoiding the need to create one manually viaListComplianceInquiryQueriesRequest.builder()- Parameters:
listComplianceInquiryQueriesRequest- AConsumerthat will call methods onListComplianceInquiryQueriesRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listCustomerAgreements
default ListCustomerAgreementsResponse listCustomerAgreements(ListCustomerAgreementsRequest listCustomerAgreementsRequest) throws ThrottlingException, AccessDeniedException, InternalServerException, ValidationException, AwsServiceException, SdkClientException, ArtifactException List active customer-agreements applicable to calling identity.
- Parameters:
listCustomerAgreementsRequest-- Returns:
- Result of the ListCustomerAgreements operation returned by the service.
- See Also:
-
listCustomerAgreements
default ListCustomerAgreementsResponse listCustomerAgreements(Consumer<ListCustomerAgreementsRequest.Builder> listCustomerAgreementsRequest) throws ThrottlingException, AccessDeniedException, InternalServerException, ValidationException, AwsServiceException, SdkClientException, ArtifactException List active customer-agreements applicable to calling identity.
This is a convenience which creates an instance of the
ListCustomerAgreementsRequest.Builderavoiding the need to create one manually viaListCustomerAgreementsRequest.builder()- Parameters:
listCustomerAgreementsRequest- AConsumerthat will call methods onListCustomerAgreementsRequest.Builderto create a request.- Returns:
- Result of the ListCustomerAgreements operation returned by the service.
- See Also:
-
listCustomerAgreementsPaginator
default ListCustomerAgreementsIterable listCustomerAgreementsPaginator(ListCustomerAgreementsRequest listCustomerAgreementsRequest) throws ThrottlingException, AccessDeniedException, InternalServerException, ValidationException, AwsServiceException, SdkClientException, ArtifactException This is a variant of
listCustomerAgreements(software.amazon.awssdk.services.artifact.model.ListCustomerAgreementsRequest)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.artifact.paginators.ListCustomerAgreementsIterable responses = client.listCustomerAgreementsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.artifact.paginators.ListCustomerAgreementsIterable responses = client .listCustomerAgreementsPaginator(request); for (software.amazon.awssdk.services.artifact.model.ListCustomerAgreementsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.artifact.paginators.ListCustomerAgreementsIterable responses = client.listCustomerAgreementsPaginator(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
listCustomerAgreements(software.amazon.awssdk.services.artifact.model.ListCustomerAgreementsRequest)operation.- Parameters:
listCustomerAgreementsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listCustomerAgreementsPaginator
default ListCustomerAgreementsIterable listCustomerAgreementsPaginator(Consumer<ListCustomerAgreementsRequest.Builder> listCustomerAgreementsRequest) throws ThrottlingException, AccessDeniedException, InternalServerException, ValidationException, AwsServiceException, SdkClientException, ArtifactException This is a variant of
listCustomerAgreements(software.amazon.awssdk.services.artifact.model.ListCustomerAgreementsRequest)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.artifact.paginators.ListCustomerAgreementsIterable responses = client.listCustomerAgreementsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.artifact.paginators.ListCustomerAgreementsIterable responses = client .listCustomerAgreementsPaginator(request); for (software.amazon.awssdk.services.artifact.model.ListCustomerAgreementsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.artifact.paginators.ListCustomerAgreementsIterable responses = client.listCustomerAgreementsPaginator(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
listCustomerAgreements(software.amazon.awssdk.services.artifact.model.ListCustomerAgreementsRequest)operation.
This is a convenience which creates an instance of the
ListCustomerAgreementsRequest.Builderavoiding the need to create one manually viaListCustomerAgreementsRequest.builder()- Parameters:
listCustomerAgreementsRequest- AConsumerthat will call methods onListCustomerAgreementsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listReportVersions
default ListReportVersionsResponse listReportVersions(ListReportVersionsRequest listReportVersionsRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, InternalServerException, ValidationException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ArtifactException List available report versions for a given report.
- Parameters:
listReportVersionsRequest-- Returns:
- Result of the ListReportVersions operation returned by the service.
- See Also:
-
listReportVersions
default ListReportVersionsResponse listReportVersions(Consumer<ListReportVersionsRequest.Builder> listReportVersionsRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, InternalServerException, ValidationException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ArtifactException List available report versions for a given report.
This is a convenience which creates an instance of the
ListReportVersionsRequest.Builderavoiding the need to create one manually viaListReportVersionsRequest.builder()- Parameters:
listReportVersionsRequest- AConsumerthat will call methods onListReportVersionsRequest.Builderto create a request.- Returns:
- Result of the ListReportVersions operation returned by the service.
- See Also:
-
listReportVersionsPaginator
default ListReportVersionsIterable listReportVersionsPaginator(ListReportVersionsRequest listReportVersionsRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, InternalServerException, ValidationException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ArtifactException This is a variant of
listReportVersions(software.amazon.awssdk.services.artifact.model.ListReportVersionsRequest)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.artifact.paginators.ListReportVersionsIterable responses = client.listReportVersionsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.artifact.paginators.ListReportVersionsIterable responses = client .listReportVersionsPaginator(request); for (software.amazon.awssdk.services.artifact.model.ListReportVersionsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.artifact.paginators.ListReportVersionsIterable responses = client.listReportVersionsPaginator(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
listReportVersions(software.amazon.awssdk.services.artifact.model.ListReportVersionsRequest)operation.- Parameters:
listReportVersionsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listReportVersionsPaginator
default ListReportVersionsIterable listReportVersionsPaginator(Consumer<ListReportVersionsRequest.Builder> listReportVersionsRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, InternalServerException, ValidationException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ArtifactException This is a variant of
listReportVersions(software.amazon.awssdk.services.artifact.model.ListReportVersionsRequest)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.artifact.paginators.ListReportVersionsIterable responses = client.listReportVersionsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.artifact.paginators.ListReportVersionsIterable responses = client .listReportVersionsPaginator(request); for (software.amazon.awssdk.services.artifact.model.ListReportVersionsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.artifact.paginators.ListReportVersionsIterable responses = client.listReportVersionsPaginator(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
listReportVersions(software.amazon.awssdk.services.artifact.model.ListReportVersionsRequest)operation.
This is a convenience which creates an instance of the
ListReportVersionsRequest.Builderavoiding the need to create one manually viaListReportVersionsRequest.builder()- Parameters:
listReportVersionsRequest- AConsumerthat will call methods onListReportVersionsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listReports
default ListReportsResponse listReports(ListReportsRequest listReportsRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, InternalServerException, ValidationException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ArtifactException List available reports.
- Parameters:
listReportsRequest-- Returns:
- Result of the ListReports operation returned by the service.
- See Also:
-
listReports
default ListReportsResponse listReports(Consumer<ListReportsRequest.Builder> listReportsRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, InternalServerException, ValidationException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ArtifactException List available reports.
This is a convenience which creates an instance of the
ListReportsRequest.Builderavoiding the need to create one manually viaListReportsRequest.builder()- Parameters:
listReportsRequest- AConsumerthat will call methods onListReportsRequest.Builderto create a request.- Returns:
- Result of the ListReports operation returned by the service.
- See Also:
-
listReportsPaginator
default ListReportsIterable listReportsPaginator(ListReportsRequest listReportsRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, InternalServerException, ValidationException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ArtifactException This is a variant of
listReports(software.amazon.awssdk.services.artifact.model.ListReportsRequest)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.artifact.paginators.ListReportsIterable responses = client.listReportsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.artifact.paginators.ListReportsIterable responses = client.listReportsPaginator(request); for (software.amazon.awssdk.services.artifact.model.ListReportsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.artifact.paginators.ListReportsIterable responses = client.listReportsPaginator(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
listReports(software.amazon.awssdk.services.artifact.model.ListReportsRequest)operation.- Parameters:
listReportsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listReportsPaginator
default ListReportsIterable listReportsPaginator(Consumer<ListReportsRequest.Builder> listReportsRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, InternalServerException, ValidationException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ArtifactException This is a variant of
listReports(software.amazon.awssdk.services.artifact.model.ListReportsRequest)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.artifact.paginators.ListReportsIterable responses = client.listReportsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.artifact.paginators.ListReportsIterable responses = client.listReportsPaginator(request); for (software.amazon.awssdk.services.artifact.model.ListReportsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.artifact.paginators.ListReportsIterable responses = client.listReportsPaginator(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
listReports(software.amazon.awssdk.services.artifact.model.ListReportsRequest)operation.
This is a convenience which creates an instance of the
ListReportsRequest.Builderavoiding the need to create one manually viaListReportsRequest.builder()- Parameters:
listReportsRequest- AConsumerthat will call methods onListReportsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, InternalServerException, ValidationException, AwsServiceException, SdkClientException, ArtifactException List tags for a resource.
- Parameters:
listTagsForResourceRequest-- Returns:
- Result of the ListTagsForResource operation returned by the service.
- See Also:
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, InternalServerException, ValidationException, AwsServiceException, SdkClientException, ArtifactException List tags for a 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.
- See Also:
-
putAccountSettings
default PutAccountSettingsResponse putAccountSettings(PutAccountSettingsRequest putAccountSettingsRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ConflictException, InternalServerException, ValidationException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ArtifactException Put the account settings for Artifact.
- Parameters:
putAccountSettingsRequest-- Returns:
- Result of the PutAccountSettings operation returned by the service.
- See Also:
-
putAccountSettings
default PutAccountSettingsResponse putAccountSettings(Consumer<PutAccountSettingsRequest.Builder> putAccountSettingsRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, ConflictException, InternalServerException, ValidationException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, ArtifactException Put the account settings for Artifact.
This is a convenience which creates an instance of the
PutAccountSettingsRequest.Builderavoiding the need to create one manually viaPutAccountSettingsRequest.builder()- Parameters:
putAccountSettingsRequest- AConsumerthat will call methods onPutAccountSettingsRequest.Builderto create a request.- Returns:
- Result of the PutAccountSettings operation returned by the service.
- See Also:
-
tagResource
default TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, InternalServerException, ValidationException, AwsServiceException, SdkClientException, ArtifactException Add tags to a resource.
- Parameters:
tagResourceRequest-- Returns:
- Result of the TagResource operation returned by the service.
- See Also:
-
tagResource
default TagResourceResponse tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, InternalServerException, ValidationException, AwsServiceException, SdkClientException, ArtifactException Add tags to a 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.
- See Also:
-
untagResource
default UntagResourceResponse untagResource(UntagResourceRequest untagResourceRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, InternalServerException, ValidationException, AwsServiceException, SdkClientException, ArtifactException Remove tags from a resource.
- Parameters:
untagResourceRequest-- Returns:
- Result of the UntagResource operation returned by the service.
- See Also:
-
untagResource
default UntagResourceResponse untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) throws ResourceNotFoundException, ThrottlingException, AccessDeniedException, InternalServerException, ValidationException, AwsServiceException, SdkClientException, ArtifactException Remove tags from a 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.
- See Also:
-
create
Create aArtifactClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider. -
builder
Create a builder that can be used to configure and create aArtifactClient. -
serviceMetadata
-
serviceClientConfiguration
Description copied from interface:SdkClientThe SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration- Specified by:
serviceClientConfigurationin interfaceAwsClient- Specified by:
serviceClientConfigurationin interfaceSdkClient- Returns:
- SdkServiceClientConfiguration
-