All Downloads are FREE. Search and download functionalities are using the official Maven repository.

software.amazon.awssdk.services.guardduty.GuardDutyClient Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon GuardDuty module holds the client classes that are used for communicating with Amazon GuardDuty Service

The newest version!
/*
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
 * the License. A copy of the License is located at
 * 
 * http://aws.amazon.com/apache2.0
 * 
 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
 * and limitations under the License.
 */

package software.amazon.awssdk.services.guardduty;

import java.util.function.Consumer;
import software.amazon.awssdk.annotations.Generated;
import software.amazon.awssdk.annotations.SdkPublicApi;
import software.amazon.awssdk.annotations.ThreadSafe;
import software.amazon.awssdk.awscore.AwsClient;
import software.amazon.awssdk.awscore.exception.AwsServiceException;
import software.amazon.awssdk.core.exception.SdkClientException;
import software.amazon.awssdk.regions.ServiceMetadata;
import software.amazon.awssdk.services.guardduty.model.AcceptAdministratorInvitationRequest;
import software.amazon.awssdk.services.guardduty.model.AcceptAdministratorInvitationResponse;
import software.amazon.awssdk.services.guardduty.model.AcceptInvitationRequest;
import software.amazon.awssdk.services.guardduty.model.AcceptInvitationResponse;
import software.amazon.awssdk.services.guardduty.model.AccessDeniedException;
import software.amazon.awssdk.services.guardduty.model.ArchiveFindingsRequest;
import software.amazon.awssdk.services.guardduty.model.ArchiveFindingsResponse;
import software.amazon.awssdk.services.guardduty.model.BadRequestException;
import software.amazon.awssdk.services.guardduty.model.ConflictException;
import software.amazon.awssdk.services.guardduty.model.CreateDetectorRequest;
import software.amazon.awssdk.services.guardduty.model.CreateDetectorResponse;
import software.amazon.awssdk.services.guardduty.model.CreateFilterRequest;
import software.amazon.awssdk.services.guardduty.model.CreateFilterResponse;
import software.amazon.awssdk.services.guardduty.model.CreateIpSetRequest;
import software.amazon.awssdk.services.guardduty.model.CreateIpSetResponse;
import software.amazon.awssdk.services.guardduty.model.CreateMalwareProtectionPlanRequest;
import software.amazon.awssdk.services.guardduty.model.CreateMalwareProtectionPlanResponse;
import software.amazon.awssdk.services.guardduty.model.CreateMembersRequest;
import software.amazon.awssdk.services.guardduty.model.CreateMembersResponse;
import software.amazon.awssdk.services.guardduty.model.CreatePublishingDestinationRequest;
import software.amazon.awssdk.services.guardduty.model.CreatePublishingDestinationResponse;
import software.amazon.awssdk.services.guardduty.model.CreateSampleFindingsRequest;
import software.amazon.awssdk.services.guardduty.model.CreateSampleFindingsResponse;
import software.amazon.awssdk.services.guardduty.model.CreateThreatIntelSetRequest;
import software.amazon.awssdk.services.guardduty.model.CreateThreatIntelSetResponse;
import software.amazon.awssdk.services.guardduty.model.DeclineInvitationsRequest;
import software.amazon.awssdk.services.guardduty.model.DeclineInvitationsResponse;
import software.amazon.awssdk.services.guardduty.model.DeleteDetectorRequest;
import software.amazon.awssdk.services.guardduty.model.DeleteDetectorResponse;
import software.amazon.awssdk.services.guardduty.model.DeleteFilterRequest;
import software.amazon.awssdk.services.guardduty.model.DeleteFilterResponse;
import software.amazon.awssdk.services.guardduty.model.DeleteInvitationsRequest;
import software.amazon.awssdk.services.guardduty.model.DeleteInvitationsResponse;
import software.amazon.awssdk.services.guardduty.model.DeleteIpSetRequest;
import software.amazon.awssdk.services.guardduty.model.DeleteIpSetResponse;
import software.amazon.awssdk.services.guardduty.model.DeleteMalwareProtectionPlanRequest;
import software.amazon.awssdk.services.guardduty.model.DeleteMalwareProtectionPlanResponse;
import software.amazon.awssdk.services.guardduty.model.DeleteMembersRequest;
import software.amazon.awssdk.services.guardduty.model.DeleteMembersResponse;
import software.amazon.awssdk.services.guardduty.model.DeletePublishingDestinationRequest;
import software.amazon.awssdk.services.guardduty.model.DeletePublishingDestinationResponse;
import software.amazon.awssdk.services.guardduty.model.DeleteThreatIntelSetRequest;
import software.amazon.awssdk.services.guardduty.model.DeleteThreatIntelSetResponse;
import software.amazon.awssdk.services.guardduty.model.DescribeMalwareScansRequest;
import software.amazon.awssdk.services.guardduty.model.DescribeMalwareScansResponse;
import software.amazon.awssdk.services.guardduty.model.DescribeOrganizationConfigurationRequest;
import software.amazon.awssdk.services.guardduty.model.DescribeOrganizationConfigurationResponse;
import software.amazon.awssdk.services.guardduty.model.DescribePublishingDestinationRequest;
import software.amazon.awssdk.services.guardduty.model.DescribePublishingDestinationResponse;
import software.amazon.awssdk.services.guardduty.model.DisableOrganizationAdminAccountRequest;
import software.amazon.awssdk.services.guardduty.model.DisableOrganizationAdminAccountResponse;
import software.amazon.awssdk.services.guardduty.model.DisassociateFromAdministratorAccountRequest;
import software.amazon.awssdk.services.guardduty.model.DisassociateFromAdministratorAccountResponse;
import software.amazon.awssdk.services.guardduty.model.DisassociateFromMasterAccountRequest;
import software.amazon.awssdk.services.guardduty.model.DisassociateFromMasterAccountResponse;
import software.amazon.awssdk.services.guardduty.model.DisassociateMembersRequest;
import software.amazon.awssdk.services.guardduty.model.DisassociateMembersResponse;
import software.amazon.awssdk.services.guardduty.model.EnableOrganizationAdminAccountRequest;
import software.amazon.awssdk.services.guardduty.model.EnableOrganizationAdminAccountResponse;
import software.amazon.awssdk.services.guardduty.model.GetAdministratorAccountRequest;
import software.amazon.awssdk.services.guardduty.model.GetAdministratorAccountResponse;
import software.amazon.awssdk.services.guardduty.model.GetCoverageStatisticsRequest;
import software.amazon.awssdk.services.guardduty.model.GetCoverageStatisticsResponse;
import software.amazon.awssdk.services.guardduty.model.GetDetectorRequest;
import software.amazon.awssdk.services.guardduty.model.GetDetectorResponse;
import software.amazon.awssdk.services.guardduty.model.GetFilterRequest;
import software.amazon.awssdk.services.guardduty.model.GetFilterResponse;
import software.amazon.awssdk.services.guardduty.model.GetFindingsRequest;
import software.amazon.awssdk.services.guardduty.model.GetFindingsResponse;
import software.amazon.awssdk.services.guardduty.model.GetFindingsStatisticsRequest;
import software.amazon.awssdk.services.guardduty.model.GetFindingsStatisticsResponse;
import software.amazon.awssdk.services.guardduty.model.GetInvitationsCountRequest;
import software.amazon.awssdk.services.guardduty.model.GetInvitationsCountResponse;
import software.amazon.awssdk.services.guardduty.model.GetIpSetRequest;
import software.amazon.awssdk.services.guardduty.model.GetIpSetResponse;
import software.amazon.awssdk.services.guardduty.model.GetMalwareProtectionPlanRequest;
import software.amazon.awssdk.services.guardduty.model.GetMalwareProtectionPlanResponse;
import software.amazon.awssdk.services.guardduty.model.GetMalwareScanSettingsRequest;
import software.amazon.awssdk.services.guardduty.model.GetMalwareScanSettingsResponse;
import software.amazon.awssdk.services.guardduty.model.GetMasterAccountRequest;
import software.amazon.awssdk.services.guardduty.model.GetMasterAccountResponse;
import software.amazon.awssdk.services.guardduty.model.GetMemberDetectorsRequest;
import software.amazon.awssdk.services.guardduty.model.GetMemberDetectorsResponse;
import software.amazon.awssdk.services.guardduty.model.GetMembersRequest;
import software.amazon.awssdk.services.guardduty.model.GetMembersResponse;
import software.amazon.awssdk.services.guardduty.model.GetOrganizationStatisticsRequest;
import software.amazon.awssdk.services.guardduty.model.GetOrganizationStatisticsResponse;
import software.amazon.awssdk.services.guardduty.model.GetRemainingFreeTrialDaysRequest;
import software.amazon.awssdk.services.guardduty.model.GetRemainingFreeTrialDaysResponse;
import software.amazon.awssdk.services.guardduty.model.GetThreatIntelSetRequest;
import software.amazon.awssdk.services.guardduty.model.GetThreatIntelSetResponse;
import software.amazon.awssdk.services.guardduty.model.GetUsageStatisticsRequest;
import software.amazon.awssdk.services.guardduty.model.GetUsageStatisticsResponse;
import software.amazon.awssdk.services.guardduty.model.GuardDutyException;
import software.amazon.awssdk.services.guardduty.model.InternalServerErrorException;
import software.amazon.awssdk.services.guardduty.model.InviteMembersRequest;
import software.amazon.awssdk.services.guardduty.model.InviteMembersResponse;
import software.amazon.awssdk.services.guardduty.model.ListCoverageRequest;
import software.amazon.awssdk.services.guardduty.model.ListCoverageResponse;
import software.amazon.awssdk.services.guardduty.model.ListDetectorsRequest;
import software.amazon.awssdk.services.guardduty.model.ListDetectorsResponse;
import software.amazon.awssdk.services.guardduty.model.ListFiltersRequest;
import software.amazon.awssdk.services.guardduty.model.ListFiltersResponse;
import software.amazon.awssdk.services.guardduty.model.ListFindingsRequest;
import software.amazon.awssdk.services.guardduty.model.ListFindingsResponse;
import software.amazon.awssdk.services.guardduty.model.ListInvitationsRequest;
import software.amazon.awssdk.services.guardduty.model.ListInvitationsResponse;
import software.amazon.awssdk.services.guardduty.model.ListIpSetsRequest;
import software.amazon.awssdk.services.guardduty.model.ListIpSetsResponse;
import software.amazon.awssdk.services.guardduty.model.ListMalwareProtectionPlansRequest;
import software.amazon.awssdk.services.guardduty.model.ListMalwareProtectionPlansResponse;
import software.amazon.awssdk.services.guardduty.model.ListMembersRequest;
import software.amazon.awssdk.services.guardduty.model.ListMembersResponse;
import software.amazon.awssdk.services.guardduty.model.ListOrganizationAdminAccountsRequest;
import software.amazon.awssdk.services.guardduty.model.ListOrganizationAdminAccountsResponse;
import software.amazon.awssdk.services.guardduty.model.ListPublishingDestinationsRequest;
import software.amazon.awssdk.services.guardduty.model.ListPublishingDestinationsResponse;
import software.amazon.awssdk.services.guardduty.model.ListTagsForResourceRequest;
import software.amazon.awssdk.services.guardduty.model.ListTagsForResourceResponse;
import software.amazon.awssdk.services.guardduty.model.ListThreatIntelSetsRequest;
import software.amazon.awssdk.services.guardduty.model.ListThreatIntelSetsResponse;
import software.amazon.awssdk.services.guardduty.model.ResourceNotFoundException;
import software.amazon.awssdk.services.guardduty.model.StartMalwareScanRequest;
import software.amazon.awssdk.services.guardduty.model.StartMalwareScanResponse;
import software.amazon.awssdk.services.guardduty.model.StartMonitoringMembersRequest;
import software.amazon.awssdk.services.guardduty.model.StartMonitoringMembersResponse;
import software.amazon.awssdk.services.guardduty.model.StopMonitoringMembersRequest;
import software.amazon.awssdk.services.guardduty.model.StopMonitoringMembersResponse;
import software.amazon.awssdk.services.guardduty.model.TagResourceRequest;
import software.amazon.awssdk.services.guardduty.model.TagResourceResponse;
import software.amazon.awssdk.services.guardduty.model.UnarchiveFindingsRequest;
import software.amazon.awssdk.services.guardduty.model.UnarchiveFindingsResponse;
import software.amazon.awssdk.services.guardduty.model.UntagResourceRequest;
import software.amazon.awssdk.services.guardduty.model.UntagResourceResponse;
import software.amazon.awssdk.services.guardduty.model.UpdateDetectorRequest;
import software.amazon.awssdk.services.guardduty.model.UpdateDetectorResponse;
import software.amazon.awssdk.services.guardduty.model.UpdateFilterRequest;
import software.amazon.awssdk.services.guardduty.model.UpdateFilterResponse;
import software.amazon.awssdk.services.guardduty.model.UpdateFindingsFeedbackRequest;
import software.amazon.awssdk.services.guardduty.model.UpdateFindingsFeedbackResponse;
import software.amazon.awssdk.services.guardduty.model.UpdateIpSetRequest;
import software.amazon.awssdk.services.guardduty.model.UpdateIpSetResponse;
import software.amazon.awssdk.services.guardduty.model.UpdateMalwareProtectionPlanRequest;
import software.amazon.awssdk.services.guardduty.model.UpdateMalwareProtectionPlanResponse;
import software.amazon.awssdk.services.guardduty.model.UpdateMalwareScanSettingsRequest;
import software.amazon.awssdk.services.guardduty.model.UpdateMalwareScanSettingsResponse;
import software.amazon.awssdk.services.guardduty.model.UpdateMemberDetectorsRequest;
import software.amazon.awssdk.services.guardduty.model.UpdateMemberDetectorsResponse;
import software.amazon.awssdk.services.guardduty.model.UpdateOrganizationConfigurationRequest;
import software.amazon.awssdk.services.guardduty.model.UpdateOrganizationConfigurationResponse;
import software.amazon.awssdk.services.guardduty.model.UpdatePublishingDestinationRequest;
import software.amazon.awssdk.services.guardduty.model.UpdatePublishingDestinationResponse;
import software.amazon.awssdk.services.guardduty.model.UpdateThreatIntelSetRequest;
import software.amazon.awssdk.services.guardduty.model.UpdateThreatIntelSetResponse;
import software.amazon.awssdk.services.guardduty.paginators.DescribeMalwareScansIterable;
import software.amazon.awssdk.services.guardduty.paginators.DescribeOrganizationConfigurationIterable;
import software.amazon.awssdk.services.guardduty.paginators.GetUsageStatisticsIterable;
import software.amazon.awssdk.services.guardduty.paginators.ListCoverageIterable;
import software.amazon.awssdk.services.guardduty.paginators.ListDetectorsIterable;
import software.amazon.awssdk.services.guardduty.paginators.ListFiltersIterable;
import software.amazon.awssdk.services.guardduty.paginators.ListFindingsIterable;
import software.amazon.awssdk.services.guardduty.paginators.ListIPSetsIterable;
import software.amazon.awssdk.services.guardduty.paginators.ListInvitationsIterable;
import software.amazon.awssdk.services.guardduty.paginators.ListMembersIterable;
import software.amazon.awssdk.services.guardduty.paginators.ListOrganizationAdminAccountsIterable;
import software.amazon.awssdk.services.guardduty.paginators.ListPublishingDestinationsIterable;
import software.amazon.awssdk.services.guardduty.paginators.ListThreatIntelSetsIterable;

/**
 * Service client for accessing Amazon GuardDuty. This can be created using the static {@link #builder()} method.
 *
 * 

* Amazon GuardDuty is a continuous security monitoring service that analyzes and processes the following foundational * data sources - VPC flow logs, Amazon Web Services CloudTrail management event logs, CloudTrail S3 data event logs, * EKS audit logs, DNS logs, Amazon EBS volume data, runtime activity belonging to container workloads, such as Amazon * EKS, Amazon ECS (including Amazon Web Services Fargate), and Amazon EC2 instances. It uses threat intelligence feeds, * such as lists of malicious IPs and domains, and machine learning to identify unexpected, potentially unauthorized, * and malicious activity within your Amazon Web Services environment. This can include issues like escalations of * privileges, uses of exposed credentials, or communication with malicious IPs, domains, or presence of malware on your * Amazon EC2 instances and container workloads. For example, GuardDuty can detect compromised EC2 instances and * container workloads serving malware, or mining bitcoin. *

*

* GuardDuty also monitors Amazon Web Services account access behavior for signs of compromise, such as unauthorized * infrastructure deployments like EC2 instances deployed in a Region that has never been used, or unusual API calls * like a password policy change to reduce password strength. *

*

* GuardDuty informs you about the status of your Amazon Web Services environment by producing security findings that * you can view in the GuardDuty console or through Amazon EventBridge. For more information, see the Amazon GuardDuty User Guide . *

*/ @Generated("software.amazon.awssdk:codegen") @SdkPublicApi @ThreadSafe public interface GuardDutyClient extends AwsClient { String SERVICE_NAME = "guardduty"; /** * Value for looking up the service's metadata from the * {@link software.amazon.awssdk.regions.ServiceMetadataProvider}. */ String SERVICE_METADATA_ID = "guardduty"; /** *

* Accepts the invitation to be a member account and get monitored by a GuardDuty administrator account that sent * the invitation. *

* * @param acceptAdministratorInvitationRequest * @return Result of the AcceptAdministratorInvitation operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.AcceptAdministratorInvitation * @see AWS API Documentation */ default AcceptAdministratorInvitationResponse acceptAdministratorInvitation( AcceptAdministratorInvitationRequest acceptAdministratorInvitationRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { throw new UnsupportedOperationException(); } /** *

* Accepts the invitation to be a member account and get monitored by a GuardDuty administrator account that sent * the invitation. *

*
*

* This is a convenience which creates an instance of the {@link AcceptAdministratorInvitationRequest.Builder} * avoiding the need to create one manually via {@link AcceptAdministratorInvitationRequest#builder()} *

* * @param acceptAdministratorInvitationRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.guardduty.model.AcceptAdministratorInvitationRequest.Builder} to * create a request. * @return Result of the AcceptAdministratorInvitation operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.AcceptAdministratorInvitation * @see AWS API Documentation */ default AcceptAdministratorInvitationResponse acceptAdministratorInvitation( Consumer acceptAdministratorInvitationRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return acceptAdministratorInvitation(AcceptAdministratorInvitationRequest.builder() .applyMutation(acceptAdministratorInvitationRequest).build()); } /** *

* Accepts the invitation to be monitored by a GuardDuty administrator account. *

* * @param acceptInvitationRequest * @return Result of the AcceptInvitation operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.AcceptInvitation * @see AWS * API Documentation * * @deprecated This operation is deprecated, use AcceptAdministratorInvitation instead */ @Deprecated default AcceptInvitationResponse acceptInvitation(AcceptInvitationRequest acceptInvitationRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { throw new UnsupportedOperationException(); } /** *

* Accepts the invitation to be monitored by a GuardDuty administrator account. *

*
*

* This is a convenience which creates an instance of the {@link AcceptInvitationRequest.Builder} avoiding the need * to create one manually via {@link AcceptInvitationRequest#builder()} *

* * @param acceptInvitationRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.guardduty.model.AcceptInvitationRequest.Builder} to create a * request. * @return Result of the AcceptInvitation operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.AcceptInvitation * @see AWS * API Documentation * * @deprecated This operation is deprecated, use AcceptAdministratorInvitation instead */ @Deprecated default AcceptInvitationResponse acceptInvitation(Consumer acceptInvitationRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return acceptInvitation(AcceptInvitationRequest.builder().applyMutation(acceptInvitationRequest).build()); } /** *

* Archives GuardDuty findings that are specified by the list of finding IDs. *

* *

* Only the administrator account can archive findings. Member accounts don't have permission to archive findings * from their accounts. *

*
* * @param archiveFindingsRequest * @return Result of the ArchiveFindings operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.ArchiveFindings * @see AWS API * Documentation */ default ArchiveFindingsResponse archiveFindings(ArchiveFindingsRequest archiveFindingsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { throw new UnsupportedOperationException(); } /** *

* Archives GuardDuty findings that are specified by the list of finding IDs. *

* *

* Only the administrator account can archive findings. Member accounts don't have permission to archive findings * from their accounts. *

*

*

* This is a convenience which creates an instance of the {@link ArchiveFindingsRequest.Builder} avoiding the need * to create one manually via {@link ArchiveFindingsRequest#builder()} *

* * @param archiveFindingsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.guardduty.model.ArchiveFindingsRequest.Builder} to create a * request. * @return Result of the ArchiveFindings operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.ArchiveFindings * @see AWS API * Documentation */ default ArchiveFindingsResponse archiveFindings(Consumer archiveFindingsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return archiveFindings(ArchiveFindingsRequest.builder().applyMutation(archiveFindingsRequest).build()); } /** *

* Creates a single GuardDuty detector. A detector is a resource that represents the GuardDuty service. To start * using GuardDuty, you must create a detector in each Region where you enable the service. You can have only one * detector per account per Region. All data sources are enabled in a new detector by default. *

*
    *
  • *

    * When you don't specify any features, with an exception to RUNTIME_MONITORING, all the * optional features are enabled by default. *

    *
  • *
  • *

    * When you specify some of the features, any feature that is not specified in the API call gets * enabled by default, with an exception to RUNTIME_MONITORING. *

    *
  • *
*

* Specifying both EKS Runtime Monitoring (EKS_RUNTIME_MONITORING) and Runtime Monitoring ( * RUNTIME_MONITORING) will cause an error. You can add only one of these two features because Runtime * Monitoring already includes the threat detection for Amazon EKS resources. For more information, see Runtime Monitoring. *

*

* There might be regional differences because some data sources might not be available in all the Amazon Web * Services Regions where GuardDuty is presently supported. For more information, see Regions and endpoints. *

* * @param createDetectorRequest * @return Result of the CreateDetector operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.CreateDetector * @see AWS API * Documentation */ default CreateDetectorResponse createDetector(CreateDetectorRequest createDetectorRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { throw new UnsupportedOperationException(); } /** *

* Creates a single GuardDuty detector. A detector is a resource that represents the GuardDuty service. To start * using GuardDuty, you must create a detector in each Region where you enable the service. You can have only one * detector per account per Region. All data sources are enabled in a new detector by default. *

*
    *
  • *

    * When you don't specify any features, with an exception to RUNTIME_MONITORING, all the * optional features are enabled by default. *

    *
  • *
  • *

    * When you specify some of the features, any feature that is not specified in the API call gets * enabled by default, with an exception to RUNTIME_MONITORING. *

    *
  • *
*

* Specifying both EKS Runtime Monitoring (EKS_RUNTIME_MONITORING) and Runtime Monitoring ( * RUNTIME_MONITORING) will cause an error. You can add only one of these two features because Runtime * Monitoring already includes the threat detection for Amazon EKS resources. For more information, see Runtime Monitoring. *

*

* There might be regional differences because some data sources might not be available in all the Amazon Web * Services Regions where GuardDuty is presently supported. For more information, see Regions and endpoints. *

*
*

* This is a convenience which creates an instance of the {@link CreateDetectorRequest.Builder} avoiding the need to * create one manually via {@link CreateDetectorRequest#builder()} *

* * @param createDetectorRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.guardduty.model.CreateDetectorRequest.Builder} to create a request. * @return Result of the CreateDetector operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.CreateDetector * @see AWS API * Documentation */ default CreateDetectorResponse createDetector(Consumer createDetectorRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return createDetector(CreateDetectorRequest.builder().applyMutation(createDetectorRequest).build()); } /** *

* Creates a filter using the specified finding criteria. The maximum number of saved filters per Amazon Web * Services account per Region is 100. For more information, see Quotas for GuardDuty. *

* * @param createFilterRequest * @return Result of the CreateFilter operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.CreateFilter * @see AWS API * Documentation */ default CreateFilterResponse createFilter(CreateFilterRequest createFilterRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { throw new UnsupportedOperationException(); } /** *

* Creates a filter using the specified finding criteria. The maximum number of saved filters per Amazon Web * Services account per Region is 100. For more information, see Quotas for GuardDuty. *

*
*

* This is a convenience which creates an instance of the {@link CreateFilterRequest.Builder} avoiding the need to * create one manually via {@link CreateFilterRequest#builder()} *

* * @param createFilterRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.guardduty.model.CreateFilterRequest.Builder} to create a request. * @return Result of the CreateFilter operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.CreateFilter * @see AWS API * Documentation */ default CreateFilterResponse createFilter(Consumer createFilterRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return createFilter(CreateFilterRequest.builder().applyMutation(createFilterRequest).build()); } /** *

* Creates a new IPSet, which is called a trusted IP list in the console user interface. An IPSet is a list of IP * addresses that are trusted for secure communication with Amazon Web Services infrastructure and applications. * GuardDuty doesn't generate findings for IP addresses that are included in IPSets. Only users from the * administrator account can use this operation. *

* * @param createIpSetRequest * @return Result of the CreateIPSet operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.CreateIPSet * @see AWS API * Documentation */ default CreateIpSetResponse createIPSet(CreateIpSetRequest createIpSetRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { throw new UnsupportedOperationException(); } /** *

* Creates a new IPSet, which is called a trusted IP list in the console user interface. An IPSet is a list of IP * addresses that are trusted for secure communication with Amazon Web Services infrastructure and applications. * GuardDuty doesn't generate findings for IP addresses that are included in IPSets. Only users from the * administrator account can use this operation. *

*
*

* This is a convenience which creates an instance of the {@link CreateIpSetRequest.Builder} avoiding the need to * create one manually via {@link CreateIpSetRequest#builder()} *

* * @param createIpSetRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.guardduty.model.CreateIpSetRequest.Builder} to create a request. * @return Result of the CreateIPSet operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.CreateIPSet * @see AWS API * Documentation */ default CreateIpSetResponse createIPSet(Consumer createIpSetRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return createIPSet(CreateIpSetRequest.builder().applyMutation(createIpSetRequest).build()); } /** *

* Creates a new Malware Protection plan for the protected resource. *

*

* When you create a Malware Protection plan, the Amazon Web Services service terms for GuardDuty Malware Protection * apply. For more information, see Amazon Web * Services service terms for GuardDuty Malware Protection. *

* * @param createMalwareProtectionPlanRequest * @return Result of the CreateMalwareProtectionPlan operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws AccessDeniedException * An access denied exception object. * @throws ConflictException * A request conflict exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.CreateMalwareProtectionPlan * @see AWS API Documentation */ default CreateMalwareProtectionPlanResponse createMalwareProtectionPlan( CreateMalwareProtectionPlanRequest createMalwareProtectionPlanRequest) throws BadRequestException, AccessDeniedException, ConflictException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { throw new UnsupportedOperationException(); } /** *

* Creates a new Malware Protection plan for the protected resource. *

*

* When you create a Malware Protection plan, the Amazon Web Services service terms for GuardDuty Malware Protection * apply. For more information, see Amazon Web * Services service terms for GuardDuty Malware Protection. *

*
*

* This is a convenience which creates an instance of the {@link CreateMalwareProtectionPlanRequest.Builder} * avoiding the need to create one manually via {@link CreateMalwareProtectionPlanRequest#builder()} *

* * @param createMalwareProtectionPlanRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.guardduty.model.CreateMalwareProtectionPlanRequest.Builder} to * create a request. * @return Result of the CreateMalwareProtectionPlan operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws AccessDeniedException * An access denied exception object. * @throws ConflictException * A request conflict exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.CreateMalwareProtectionPlan * @see AWS API Documentation */ default CreateMalwareProtectionPlanResponse createMalwareProtectionPlan( Consumer createMalwareProtectionPlanRequest) throws BadRequestException, AccessDeniedException, ConflictException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return createMalwareProtectionPlan(CreateMalwareProtectionPlanRequest.builder() .applyMutation(createMalwareProtectionPlanRequest).build()); } /** *

* Creates member accounts of the current Amazon Web Services account by specifying a list of Amazon Web Services * account IDs. This step is a prerequisite for managing the associated member accounts either by invitation or * through an organization. *

*

* As a delegated administrator, using CreateMembers will enable GuardDuty in the added member * accounts, with the exception of the organization delegated administrator account. A delegated administrator must * enable GuardDuty prior to being added as a member. *

*

* When you use CreateMembers as an Organizations delegated administrator, GuardDuty applies your organization's * auto-enable settings to the member accounts in this request, irrespective of the accounts being new or existing * members. For more information about the existing auto-enable settings for your organization, see DescribeOrganizationConfiguration. *

*

* If you disassociate a member account that was added by invitation, the member account details obtained from this * API, including the associated email addresses, will be retained. This is done so that the delegated administrator * can invoke the InviteMembers API * without the need to invoke the CreateMembers API again. To remove the details associated with a member account, * the delegated administrator must invoke the DeleteMembers API. *

*

* When the member accounts added through Organizations are later disassociated, you (administrator) can't invite * them by calling the InviteMembers API. You can create an association with these member accounts again only by * calling the CreateMembers API. *

* * @param createMembersRequest * @return Result of the CreateMembers operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.CreateMembers * @see AWS API * Documentation */ default CreateMembersResponse createMembers(CreateMembersRequest createMembersRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { throw new UnsupportedOperationException(); } /** *

* Creates member accounts of the current Amazon Web Services account by specifying a list of Amazon Web Services * account IDs. This step is a prerequisite for managing the associated member accounts either by invitation or * through an organization. *

*

* As a delegated administrator, using CreateMembers will enable GuardDuty in the added member * accounts, with the exception of the organization delegated administrator account. A delegated administrator must * enable GuardDuty prior to being added as a member. *

*

* When you use CreateMembers as an Organizations delegated administrator, GuardDuty applies your organization's * auto-enable settings to the member accounts in this request, irrespective of the accounts being new or existing * members. For more information about the existing auto-enable settings for your organization, see DescribeOrganizationConfiguration. *

*

* If you disassociate a member account that was added by invitation, the member account details obtained from this * API, including the associated email addresses, will be retained. This is done so that the delegated administrator * can invoke the InviteMembers API * without the need to invoke the CreateMembers API again. To remove the details associated with a member account, * the delegated administrator must invoke the DeleteMembers API. *

*

* When the member accounts added through Organizations are later disassociated, you (administrator) can't invite * them by calling the InviteMembers API. You can create an association with these member accounts again only by * calling the CreateMembers API. *

*
*

* This is a convenience which creates an instance of the {@link CreateMembersRequest.Builder} avoiding the need to * create one manually via {@link CreateMembersRequest#builder()} *

* * @param createMembersRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.guardduty.model.CreateMembersRequest.Builder} to create a request. * @return Result of the CreateMembers operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.CreateMembers * @see AWS API * Documentation */ default CreateMembersResponse createMembers(Consumer createMembersRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return createMembers(CreateMembersRequest.builder().applyMutation(createMembersRequest).build()); } /** *

* Creates a publishing destination where you can export your GuardDuty findings. Before you start exporting the * findings, the destination resource must exist. *

* * @param createPublishingDestinationRequest * @return Result of the CreatePublishingDestination operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.CreatePublishingDestination * @see AWS API Documentation */ default CreatePublishingDestinationResponse createPublishingDestination( CreatePublishingDestinationRequest createPublishingDestinationRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { throw new UnsupportedOperationException(); } /** *

* Creates a publishing destination where you can export your GuardDuty findings. Before you start exporting the * findings, the destination resource must exist. *

*
*

* This is a convenience which creates an instance of the {@link CreatePublishingDestinationRequest.Builder} * avoiding the need to create one manually via {@link CreatePublishingDestinationRequest#builder()} *

* * @param createPublishingDestinationRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.guardduty.model.CreatePublishingDestinationRequest.Builder} to * create a request. * @return Result of the CreatePublishingDestination operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.CreatePublishingDestination * @see AWS API Documentation */ default CreatePublishingDestinationResponse createPublishingDestination( Consumer createPublishingDestinationRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return createPublishingDestination(CreatePublishingDestinationRequest.builder() .applyMutation(createPublishingDestinationRequest).build()); } /** *

* Generates sample findings of types specified by the list of finding types. If 'NULL' is specified for * findingTypes, the API generates sample findings of all supported finding types. *

* * @param createSampleFindingsRequest * @return Result of the CreateSampleFindings operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.CreateSampleFindings * @see AWS API Documentation */ default CreateSampleFindingsResponse createSampleFindings(CreateSampleFindingsRequest createSampleFindingsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { throw new UnsupportedOperationException(); } /** *

* Generates sample findings of types specified by the list of finding types. If 'NULL' is specified for * findingTypes, the API generates sample findings of all supported finding types. *

*
*

* This is a convenience which creates an instance of the {@link CreateSampleFindingsRequest.Builder} avoiding the * need to create one manually via {@link CreateSampleFindingsRequest#builder()} *

* * @param createSampleFindingsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.guardduty.model.CreateSampleFindingsRequest.Builder} to create a * request. * @return Result of the CreateSampleFindings operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.CreateSampleFindings * @see AWS API Documentation */ default CreateSampleFindingsResponse createSampleFindings( Consumer createSampleFindingsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return createSampleFindings(CreateSampleFindingsRequest.builder().applyMutation(createSampleFindingsRequest).build()); } /** *

* Creates a new ThreatIntelSet. ThreatIntelSets consist of known malicious IP addresses. GuardDuty generates * findings based on ThreatIntelSets. Only users of the administrator account can use this operation. *

* * @param createThreatIntelSetRequest * @return Result of the CreateThreatIntelSet operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.CreateThreatIntelSet * @see AWS API Documentation */ default CreateThreatIntelSetResponse createThreatIntelSet(CreateThreatIntelSetRequest createThreatIntelSetRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { throw new UnsupportedOperationException(); } /** *

* Creates a new ThreatIntelSet. ThreatIntelSets consist of known malicious IP addresses. GuardDuty generates * findings based on ThreatIntelSets. Only users of the administrator account can use this operation. *

*
*

* This is a convenience which creates an instance of the {@link CreateThreatIntelSetRequest.Builder} avoiding the * need to create one manually via {@link CreateThreatIntelSetRequest#builder()} *

* * @param createThreatIntelSetRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.guardduty.model.CreateThreatIntelSetRequest.Builder} to create a * request. * @return Result of the CreateThreatIntelSet operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.CreateThreatIntelSet * @see AWS API Documentation */ default CreateThreatIntelSetResponse createThreatIntelSet( Consumer createThreatIntelSetRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return createThreatIntelSet(CreateThreatIntelSetRequest.builder().applyMutation(createThreatIntelSetRequest).build()); } /** *

* Declines invitations sent to the current member account by Amazon Web Services accounts specified by their * account IDs. *

* * @param declineInvitationsRequest * @return Result of the DeclineInvitations operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.DeclineInvitations * @see AWS * API Documentation */ default DeclineInvitationsResponse declineInvitations(DeclineInvitationsRequest declineInvitationsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { throw new UnsupportedOperationException(); } /** *

* Declines invitations sent to the current member account by Amazon Web Services accounts specified by their * account IDs. *

*
*

* This is a convenience which creates an instance of the {@link DeclineInvitationsRequest.Builder} avoiding the * need to create one manually via {@link DeclineInvitationsRequest#builder()} *

* * @param declineInvitationsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.guardduty.model.DeclineInvitationsRequest.Builder} to create a * request. * @return Result of the DeclineInvitations operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.DeclineInvitations * @see AWS * API Documentation */ default DeclineInvitationsResponse declineInvitations(Consumer declineInvitationsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return declineInvitations(DeclineInvitationsRequest.builder().applyMutation(declineInvitationsRequest).build()); } /** *

* Deletes an Amazon GuardDuty detector that is specified by the detector ID. *

* * @param deleteDetectorRequest * @return Result of the DeleteDetector operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.DeleteDetector * @see AWS API * Documentation */ default DeleteDetectorResponse deleteDetector(DeleteDetectorRequest deleteDetectorRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { throw new UnsupportedOperationException(); } /** *

* Deletes an Amazon GuardDuty detector that is specified by the detector ID. *

*
*

* This is a convenience which creates an instance of the {@link DeleteDetectorRequest.Builder} avoiding the need to * create one manually via {@link DeleteDetectorRequest#builder()} *

* * @param deleteDetectorRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.guardduty.model.DeleteDetectorRequest.Builder} to create a request. * @return Result of the DeleteDetector operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.DeleteDetector * @see AWS API * Documentation */ default DeleteDetectorResponse deleteDetector(Consumer deleteDetectorRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return deleteDetector(DeleteDetectorRequest.builder().applyMutation(deleteDetectorRequest).build()); } /** *

* Deletes the filter specified by the filter name. *

* * @param deleteFilterRequest * @return Result of the DeleteFilter operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.DeleteFilter * @see AWS API * Documentation */ default DeleteFilterResponse deleteFilter(DeleteFilterRequest deleteFilterRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { throw new UnsupportedOperationException(); } /** *

* Deletes the filter specified by the filter name. *

*
*

* This is a convenience which creates an instance of the {@link DeleteFilterRequest.Builder} avoiding the need to * create one manually via {@link DeleteFilterRequest#builder()} *

* * @param deleteFilterRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.guardduty.model.DeleteFilterRequest.Builder} to create a request. * @return Result of the DeleteFilter operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.DeleteFilter * @see AWS API * Documentation */ default DeleteFilterResponse deleteFilter(Consumer deleteFilterRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return deleteFilter(DeleteFilterRequest.builder().applyMutation(deleteFilterRequest).build()); } /** *

* Deletes the IPSet specified by the ipSetId. IPSets are called trusted IP lists in the console user * interface. *

* * @param deleteIpSetRequest * @return Result of the DeleteIPSet operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.DeleteIPSet * @see AWS API * Documentation */ default DeleteIpSetResponse deleteIPSet(DeleteIpSetRequest deleteIpSetRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { throw new UnsupportedOperationException(); } /** *

* Deletes the IPSet specified by the ipSetId. IPSets are called trusted IP lists in the console user * interface. *

*
*

* This is a convenience which creates an instance of the {@link DeleteIpSetRequest.Builder} avoiding the need to * create one manually via {@link DeleteIpSetRequest#builder()} *

* * @param deleteIpSetRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.guardduty.model.DeleteIpSetRequest.Builder} to create a request. * @return Result of the DeleteIPSet operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.DeleteIPSet * @see AWS API * Documentation */ default DeleteIpSetResponse deleteIPSet(Consumer deleteIpSetRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return deleteIPSet(DeleteIpSetRequest.builder().applyMutation(deleteIpSetRequest).build()); } /** *

* Deletes invitations sent to the current member account by Amazon Web Services accounts specified by their account * IDs. *

* * @param deleteInvitationsRequest * @return Result of the DeleteInvitations operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.DeleteInvitations * @see AWS * API Documentation */ default DeleteInvitationsResponse deleteInvitations(DeleteInvitationsRequest deleteInvitationsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { throw new UnsupportedOperationException(); } /** *

* Deletes invitations sent to the current member account by Amazon Web Services accounts specified by their account * IDs. *

*
*

* This is a convenience which creates an instance of the {@link DeleteInvitationsRequest.Builder} avoiding the need * to create one manually via {@link DeleteInvitationsRequest#builder()} *

* * @param deleteInvitationsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.guardduty.model.DeleteInvitationsRequest.Builder} to create a * request. * @return Result of the DeleteInvitations operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.DeleteInvitations * @see AWS * API Documentation */ default DeleteInvitationsResponse deleteInvitations(Consumer deleteInvitationsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return deleteInvitations(DeleteInvitationsRequest.builder().applyMutation(deleteInvitationsRequest).build()); } /** *

* Deletes the Malware Protection plan ID associated with the Malware Protection plan resource. Use this API only * when you no longer want to protect the resource associated with this Malware Protection plan ID. *

* * @param deleteMalwareProtectionPlanRequest * @return Result of the DeleteMalwareProtectionPlan operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws AccessDeniedException * An access denied exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws ResourceNotFoundException * The requested resource can't be found. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.DeleteMalwareProtectionPlan * @see AWS API Documentation */ default DeleteMalwareProtectionPlanResponse deleteMalwareProtectionPlan( DeleteMalwareProtectionPlanRequest deleteMalwareProtectionPlanRequest) throws BadRequestException, AccessDeniedException, InternalServerErrorException, ResourceNotFoundException, AwsServiceException, SdkClientException, GuardDutyException { throw new UnsupportedOperationException(); } /** *

* Deletes the Malware Protection plan ID associated with the Malware Protection plan resource. Use this API only * when you no longer want to protect the resource associated with this Malware Protection plan ID. *

*
*

* This is a convenience which creates an instance of the {@link DeleteMalwareProtectionPlanRequest.Builder} * avoiding the need to create one manually via {@link DeleteMalwareProtectionPlanRequest#builder()} *

* * @param deleteMalwareProtectionPlanRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.guardduty.model.DeleteMalwareProtectionPlanRequest.Builder} to * create a request. * @return Result of the DeleteMalwareProtectionPlan operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws AccessDeniedException * An access denied exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws ResourceNotFoundException * The requested resource can't be found. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.DeleteMalwareProtectionPlan * @see AWS API Documentation */ default DeleteMalwareProtectionPlanResponse deleteMalwareProtectionPlan( Consumer deleteMalwareProtectionPlanRequest) throws BadRequestException, AccessDeniedException, InternalServerErrorException, ResourceNotFoundException, AwsServiceException, SdkClientException, GuardDutyException { return deleteMalwareProtectionPlan(DeleteMalwareProtectionPlanRequest.builder() .applyMutation(deleteMalwareProtectionPlanRequest).build()); } /** *

* Deletes GuardDuty member accounts (to the current GuardDuty administrator account) specified by the account IDs. *

*

* With autoEnableOrganizationMembers configuration for your organization set to ALL, * you'll receive an error if you attempt to disable GuardDuty for a member account in your organization. *

* * @param deleteMembersRequest * @return Result of the DeleteMembers operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.DeleteMembers * @see AWS API * Documentation */ default DeleteMembersResponse deleteMembers(DeleteMembersRequest deleteMembersRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { throw new UnsupportedOperationException(); } /** *

* Deletes GuardDuty member accounts (to the current GuardDuty administrator account) specified by the account IDs. *

*

* With autoEnableOrganizationMembers configuration for your organization set to ALL, * you'll receive an error if you attempt to disable GuardDuty for a member account in your organization. *

*
*

* This is a convenience which creates an instance of the {@link DeleteMembersRequest.Builder} avoiding the need to * create one manually via {@link DeleteMembersRequest#builder()} *

* * @param deleteMembersRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.guardduty.model.DeleteMembersRequest.Builder} to create a request. * @return Result of the DeleteMembers operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.DeleteMembers * @see AWS API * Documentation */ default DeleteMembersResponse deleteMembers(Consumer deleteMembersRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return deleteMembers(DeleteMembersRequest.builder().applyMutation(deleteMembersRequest).build()); } /** *

* Deletes the publishing definition with the specified destinationId. *

* * @param deletePublishingDestinationRequest * @return Result of the DeletePublishingDestination operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.DeletePublishingDestination * @see AWS API Documentation */ default DeletePublishingDestinationResponse deletePublishingDestination( DeletePublishingDestinationRequest deletePublishingDestinationRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { throw new UnsupportedOperationException(); } /** *

* Deletes the publishing definition with the specified destinationId. *

*
*

* This is a convenience which creates an instance of the {@link DeletePublishingDestinationRequest.Builder} * avoiding the need to create one manually via {@link DeletePublishingDestinationRequest#builder()} *

* * @param deletePublishingDestinationRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.guardduty.model.DeletePublishingDestinationRequest.Builder} to * create a request. * @return Result of the DeletePublishingDestination operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.DeletePublishingDestination * @see AWS API Documentation */ default DeletePublishingDestinationResponse deletePublishingDestination( Consumer deletePublishingDestinationRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return deletePublishingDestination(DeletePublishingDestinationRequest.builder() .applyMutation(deletePublishingDestinationRequest).build()); } /** *

* Deletes the ThreatIntelSet specified by the ThreatIntelSet ID. *

* * @param deleteThreatIntelSetRequest * @return Result of the DeleteThreatIntelSet operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.DeleteThreatIntelSet * @see AWS API Documentation */ default DeleteThreatIntelSetResponse deleteThreatIntelSet(DeleteThreatIntelSetRequest deleteThreatIntelSetRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { throw new UnsupportedOperationException(); } /** *

* Deletes the ThreatIntelSet specified by the ThreatIntelSet ID. *

*
*

* This is a convenience which creates an instance of the {@link DeleteThreatIntelSetRequest.Builder} avoiding the * need to create one manually via {@link DeleteThreatIntelSetRequest#builder()} *

* * @param deleteThreatIntelSetRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.guardduty.model.DeleteThreatIntelSetRequest.Builder} to create a * request. * @return Result of the DeleteThreatIntelSet operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.DeleteThreatIntelSet * @see AWS API Documentation */ default DeleteThreatIntelSetResponse deleteThreatIntelSet( Consumer deleteThreatIntelSetRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return deleteThreatIntelSet(DeleteThreatIntelSetRequest.builder().applyMutation(deleteThreatIntelSetRequest).build()); } /** *

* Returns a list of malware scans. Each member account can view the malware scans for their own accounts. An * administrator can view the malware scans for all the member accounts. *

*

* There might be regional differences because some data sources might not be available in all the Amazon Web * Services Regions where GuardDuty is presently supported. For more information, see Regions and endpoints. *

* * @param describeMalwareScansRequest * @return Result of the DescribeMalwareScans operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.DescribeMalwareScans * @see AWS API Documentation */ default DescribeMalwareScansResponse describeMalwareScans(DescribeMalwareScansRequest describeMalwareScansRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { throw new UnsupportedOperationException(); } /** *

* Returns a list of malware scans. Each member account can view the malware scans for their own accounts. An * administrator can view the malware scans for all the member accounts. *

*

* There might be regional differences because some data sources might not be available in all the Amazon Web * Services Regions where GuardDuty is presently supported. For more information, see Regions and endpoints. *

*
*

* This is a convenience which creates an instance of the {@link DescribeMalwareScansRequest.Builder} avoiding the * need to create one manually via {@link DescribeMalwareScansRequest#builder()} *

* * @param describeMalwareScansRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.guardduty.model.DescribeMalwareScansRequest.Builder} to create a * request. * @return Result of the DescribeMalwareScans operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.DescribeMalwareScans * @see AWS API Documentation */ default DescribeMalwareScansResponse describeMalwareScans( Consumer describeMalwareScansRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return describeMalwareScans(DescribeMalwareScansRequest.builder().applyMutation(describeMalwareScansRequest).build()); } /** *

* This is a variant of * {@link #describeMalwareScans(software.amazon.awssdk.services.guardduty.model.DescribeMalwareScansRequest)} * 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 * *
     * {@code
     * software.amazon.awssdk.services.guardduty.paginators.DescribeMalwareScansIterable responses = client.describeMalwareScansPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.guardduty.paginators.DescribeMalwareScansIterable responses = client
     *             .describeMalwareScansPaginator(request);
     *     for (software.amazon.awssdk.services.guardduty.model.DescribeMalwareScansResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.guardduty.paginators.DescribeMalwareScansIterable responses = client.describeMalwareScansPaginator(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 * {@link #describeMalwareScans(software.amazon.awssdk.services.guardduty.model.DescribeMalwareScansRequest)} * operation. *

* * @param describeMalwareScansRequest * @return A custom iterable that can be used to iterate through all the response pages. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.DescribeMalwareScans * @see AWS API Documentation */ default DescribeMalwareScansIterable describeMalwareScansPaginator(DescribeMalwareScansRequest describeMalwareScansRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return new DescribeMalwareScansIterable(this, describeMalwareScansRequest); } /** *

* This is a variant of * {@link #describeMalwareScans(software.amazon.awssdk.services.guardduty.model.DescribeMalwareScansRequest)} * 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 * *
     * {@code
     * software.amazon.awssdk.services.guardduty.paginators.DescribeMalwareScansIterable responses = client.describeMalwareScansPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.guardduty.paginators.DescribeMalwareScansIterable responses = client
     *             .describeMalwareScansPaginator(request);
     *     for (software.amazon.awssdk.services.guardduty.model.DescribeMalwareScansResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.guardduty.paginators.DescribeMalwareScansIterable responses = client.describeMalwareScansPaginator(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 * {@link #describeMalwareScans(software.amazon.awssdk.services.guardduty.model.DescribeMalwareScansRequest)} * operation. *

*
*

* This is a convenience which creates an instance of the {@link DescribeMalwareScansRequest.Builder} avoiding the * need to create one manually via {@link DescribeMalwareScansRequest#builder()} *

* * @param describeMalwareScansRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.guardduty.model.DescribeMalwareScansRequest.Builder} to create a * request. * @return A custom iterable that can be used to iterate through all the response pages. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.DescribeMalwareScans * @see AWS API Documentation */ default DescribeMalwareScansIterable describeMalwareScansPaginator( Consumer describeMalwareScansRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return describeMalwareScansPaginator(DescribeMalwareScansRequest.builder().applyMutation(describeMalwareScansRequest) .build()); } /** *

* Returns information about the account selected as the delegated administrator for GuardDuty. *

*

* There might be regional differences because some data sources might not be available in all the Amazon Web * Services Regions where GuardDuty is presently supported. For more information, see Regions and endpoints. *

* * @param describeOrganizationConfigurationRequest * @return Result of the DescribeOrganizationConfiguration operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.DescribeOrganizationConfiguration * @see AWS API Documentation */ default DescribeOrganizationConfigurationResponse describeOrganizationConfiguration( DescribeOrganizationConfigurationRequest describeOrganizationConfigurationRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { throw new UnsupportedOperationException(); } /** *

* Returns information about the account selected as the delegated administrator for GuardDuty. *

*

* There might be regional differences because some data sources might not be available in all the Amazon Web * Services Regions where GuardDuty is presently supported. For more information, see Regions and endpoints. *

*
*

* This is a convenience which creates an instance of the {@link DescribeOrganizationConfigurationRequest.Builder} * avoiding the need to create one manually via {@link DescribeOrganizationConfigurationRequest#builder()} *

* * @param describeOrganizationConfigurationRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.guardduty.model.DescribeOrganizationConfigurationRequest.Builder} * to create a request. * @return Result of the DescribeOrganizationConfiguration operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.DescribeOrganizationConfiguration * @see AWS API Documentation */ default DescribeOrganizationConfigurationResponse describeOrganizationConfiguration( Consumer describeOrganizationConfigurationRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return describeOrganizationConfiguration(DescribeOrganizationConfigurationRequest.builder() .applyMutation(describeOrganizationConfigurationRequest).build()); } /** *

* This is a variant of * {@link #describeOrganizationConfiguration(software.amazon.awssdk.services.guardduty.model.DescribeOrganizationConfigurationRequest)} * 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 * *
     * {@code
     * software.amazon.awssdk.services.guardduty.paginators.DescribeOrganizationConfigurationIterable responses = client.describeOrganizationConfigurationPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.guardduty.paginators.DescribeOrganizationConfigurationIterable responses = client
     *             .describeOrganizationConfigurationPaginator(request);
     *     for (software.amazon.awssdk.services.guardduty.model.DescribeOrganizationConfigurationResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.guardduty.paginators.DescribeOrganizationConfigurationIterable responses = client.describeOrganizationConfigurationPaginator(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 * {@link #describeOrganizationConfiguration(software.amazon.awssdk.services.guardduty.model.DescribeOrganizationConfigurationRequest)} * operation. *

* * @param describeOrganizationConfigurationRequest * @return A custom iterable that can be used to iterate through all the response pages. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.DescribeOrganizationConfiguration * @see AWS API Documentation */ default DescribeOrganizationConfigurationIterable describeOrganizationConfigurationPaginator( DescribeOrganizationConfigurationRequest describeOrganizationConfigurationRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return new DescribeOrganizationConfigurationIterable(this, describeOrganizationConfigurationRequest); } /** *

* This is a variant of * {@link #describeOrganizationConfiguration(software.amazon.awssdk.services.guardduty.model.DescribeOrganizationConfigurationRequest)} * 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 * *
     * {@code
     * software.amazon.awssdk.services.guardduty.paginators.DescribeOrganizationConfigurationIterable responses = client.describeOrganizationConfigurationPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.guardduty.paginators.DescribeOrganizationConfigurationIterable responses = client
     *             .describeOrganizationConfigurationPaginator(request);
     *     for (software.amazon.awssdk.services.guardduty.model.DescribeOrganizationConfigurationResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.guardduty.paginators.DescribeOrganizationConfigurationIterable responses = client.describeOrganizationConfigurationPaginator(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 * {@link #describeOrganizationConfiguration(software.amazon.awssdk.services.guardduty.model.DescribeOrganizationConfigurationRequest)} * operation. *

*
*

* This is a convenience which creates an instance of the {@link DescribeOrganizationConfigurationRequest.Builder} * avoiding the need to create one manually via {@link DescribeOrganizationConfigurationRequest#builder()} *

* * @param describeOrganizationConfigurationRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.guardduty.model.DescribeOrganizationConfigurationRequest.Builder} * to create a request. * @return A custom iterable that can be used to iterate through all the response pages. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.DescribeOrganizationConfiguration * @see AWS API Documentation */ default DescribeOrganizationConfigurationIterable describeOrganizationConfigurationPaginator( Consumer describeOrganizationConfigurationRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return describeOrganizationConfigurationPaginator(DescribeOrganizationConfigurationRequest.builder() .applyMutation(describeOrganizationConfigurationRequest).build()); } /** *

* Returns information about the publishing destination specified by the provided destinationId. *

* * @param describePublishingDestinationRequest * @return Result of the DescribePublishingDestination operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.DescribePublishingDestination * @see AWS API Documentation */ default DescribePublishingDestinationResponse describePublishingDestination( DescribePublishingDestinationRequest describePublishingDestinationRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { throw new UnsupportedOperationException(); } /** *

* Returns information about the publishing destination specified by the provided destinationId. *

*
*

* This is a convenience which creates an instance of the {@link DescribePublishingDestinationRequest.Builder} * avoiding the need to create one manually via {@link DescribePublishingDestinationRequest#builder()} *

* * @param describePublishingDestinationRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.guardduty.model.DescribePublishingDestinationRequest.Builder} to * create a request. * @return Result of the DescribePublishingDestination operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.DescribePublishingDestination * @see AWS API Documentation */ default DescribePublishingDestinationResponse describePublishingDestination( Consumer describePublishingDestinationRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return describePublishingDestination(DescribePublishingDestinationRequest.builder() .applyMutation(describePublishingDestinationRequest).build()); } /** *

* Removes the existing GuardDuty delegated administrator of the organization. Only the organization's management * account can run this API operation. *

* * @param disableOrganizationAdminAccountRequest * @return Result of the DisableOrganizationAdminAccount operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.DisableOrganizationAdminAccount * @see AWS API Documentation */ default DisableOrganizationAdminAccountResponse disableOrganizationAdminAccount( DisableOrganizationAdminAccountRequest disableOrganizationAdminAccountRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { throw new UnsupportedOperationException(); } /** *

* Removes the existing GuardDuty delegated administrator of the organization. Only the organization's management * account can run this API operation. *

*
*

* This is a convenience which creates an instance of the {@link DisableOrganizationAdminAccountRequest.Builder} * avoiding the need to create one manually via {@link DisableOrganizationAdminAccountRequest#builder()} *

* * @param disableOrganizationAdminAccountRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.guardduty.model.DisableOrganizationAdminAccountRequest.Builder} to * create a request. * @return Result of the DisableOrganizationAdminAccount operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.DisableOrganizationAdminAccount * @see AWS API Documentation */ default DisableOrganizationAdminAccountResponse disableOrganizationAdminAccount( Consumer disableOrganizationAdminAccountRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return disableOrganizationAdminAccount(DisableOrganizationAdminAccountRequest.builder() .applyMutation(disableOrganizationAdminAccountRequest).build()); } /** *

* Disassociates the current GuardDuty member account from its administrator account. *

*

* When you disassociate an invited member from a GuardDuty delegated administrator, the member account details * obtained from the CreateMembers API, * including the associated email addresses, are retained. This is done so that the delegated administrator can * invoke the InviteMembers API * without the need to invoke the CreateMembers API again. To remove the details associated with a member account, * the delegated administrator must invoke the DeleteMembers API. *

*

* With autoEnableOrganizationMembers configuration for your organization set to ALL, * you'll receive an error if you attempt to disable GuardDuty in a member account. *

* * @param disassociateFromAdministratorAccountRequest * @return Result of the DisassociateFromAdministratorAccount operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.DisassociateFromAdministratorAccount * @see AWS API Documentation */ default DisassociateFromAdministratorAccountResponse disassociateFromAdministratorAccount( DisassociateFromAdministratorAccountRequest disassociateFromAdministratorAccountRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { throw new UnsupportedOperationException(); } /** *

* Disassociates the current GuardDuty member account from its administrator account. *

*

* When you disassociate an invited member from a GuardDuty delegated administrator, the member account details * obtained from the CreateMembers API, * including the associated email addresses, are retained. This is done so that the delegated administrator can * invoke the InviteMembers API * without the need to invoke the CreateMembers API again. To remove the details associated with a member account, * the delegated administrator must invoke the DeleteMembers API. *

*

* With autoEnableOrganizationMembers configuration for your organization set to ALL, * you'll receive an error if you attempt to disable GuardDuty in a member account. *

*
*

* This is a convenience which creates an instance of the * {@link DisassociateFromAdministratorAccountRequest.Builder} avoiding the need to create one manually via * {@link DisassociateFromAdministratorAccountRequest#builder()} *

* * @param disassociateFromAdministratorAccountRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.guardduty.model.DisassociateFromAdministratorAccountRequest.Builder} * to create a request. * @return Result of the DisassociateFromAdministratorAccount operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.DisassociateFromAdministratorAccount * @see AWS API Documentation */ default DisassociateFromAdministratorAccountResponse disassociateFromAdministratorAccount( Consumer disassociateFromAdministratorAccountRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return disassociateFromAdministratorAccount(DisassociateFromAdministratorAccountRequest.builder() .applyMutation(disassociateFromAdministratorAccountRequest).build()); } /** *

* Disassociates the current GuardDuty member account from its administrator account. *

*

* When you disassociate an invited member from a GuardDuty delegated administrator, the member account details * obtained from the CreateMembers API, * including the associated email addresses, are retained. This is done so that the delegated administrator can * invoke the InviteMembers API * without the need to invoke the CreateMembers API again. To remove the details associated with a member account, * the delegated administrator must invoke the DeleteMembers API. *

* * @param disassociateFromMasterAccountRequest * @return Result of the DisassociateFromMasterAccount operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.DisassociateFromMasterAccount * @see AWS API Documentation * * @deprecated This operation is deprecated, use DisassociateFromAdministratorAccount instead */ @Deprecated default DisassociateFromMasterAccountResponse disassociateFromMasterAccount( DisassociateFromMasterAccountRequest disassociateFromMasterAccountRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { throw new UnsupportedOperationException(); } /** *

* Disassociates the current GuardDuty member account from its administrator account. *

*

* When you disassociate an invited member from a GuardDuty delegated administrator, the member account details * obtained from the CreateMembers API, * including the associated email addresses, are retained. This is done so that the delegated administrator can * invoke the InviteMembers API * without the need to invoke the CreateMembers API again. To remove the details associated with a member account, * the delegated administrator must invoke the DeleteMembers API. *

*
*

* This is a convenience which creates an instance of the {@link DisassociateFromMasterAccountRequest.Builder} * avoiding the need to create one manually via {@link DisassociateFromMasterAccountRequest#builder()} *

* * @param disassociateFromMasterAccountRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.guardduty.model.DisassociateFromMasterAccountRequest.Builder} to * create a request. * @return Result of the DisassociateFromMasterAccount operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.DisassociateFromMasterAccount * @see AWS API Documentation * * @deprecated This operation is deprecated, use DisassociateFromAdministratorAccount instead */ @Deprecated default DisassociateFromMasterAccountResponse disassociateFromMasterAccount( Consumer disassociateFromMasterAccountRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return disassociateFromMasterAccount(DisassociateFromMasterAccountRequest.builder() .applyMutation(disassociateFromMasterAccountRequest).build()); } /** *

* Disassociates GuardDuty member accounts (from the current administrator account) specified by the account IDs. *

*

* When you disassociate an invited member from a GuardDuty delegated administrator, the member account details * obtained from the CreateMembers API, * including the associated email addresses, are retained. This is done so that the delegated administrator can * invoke the InviteMembers API * without the need to invoke the CreateMembers API again. To remove the details associated with a member account, * the delegated administrator must invoke the DeleteMembers API. *

*

* With autoEnableOrganizationMembers configuration for your organization set to ALL, * you'll receive an error if you attempt to disassociate a member account before removing them from your * organization. *

*

* If you disassociate a member account that was added by invitation, the member account details obtained from this * API, including the associated email addresses, will be retained. This is done so that the delegated administrator * can invoke the InviteMembers API * without the need to invoke the CreateMembers API again. To remove the details associated with a member account, * the delegated administrator must invoke the DeleteMembers API. *

*

* When the member accounts added through Organizations are later disassociated, you (administrator) can't invite * them by calling the InviteMembers API. You can create an association with these member accounts again only by * calling the CreateMembers API. *

* * @param disassociateMembersRequest * @return Result of the DisassociateMembers operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.DisassociateMembers * @see AWS * API Documentation */ default DisassociateMembersResponse disassociateMembers(DisassociateMembersRequest disassociateMembersRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { throw new UnsupportedOperationException(); } /** *

* Disassociates GuardDuty member accounts (from the current administrator account) specified by the account IDs. *

*

* When you disassociate an invited member from a GuardDuty delegated administrator, the member account details * obtained from the CreateMembers API, * including the associated email addresses, are retained. This is done so that the delegated administrator can * invoke the InviteMembers API * without the need to invoke the CreateMembers API again. To remove the details associated with a member account, * the delegated administrator must invoke the DeleteMembers API. *

*

* With autoEnableOrganizationMembers configuration for your organization set to ALL, * you'll receive an error if you attempt to disassociate a member account before removing them from your * organization. *

*

* If you disassociate a member account that was added by invitation, the member account details obtained from this * API, including the associated email addresses, will be retained. This is done so that the delegated administrator * can invoke the InviteMembers API * without the need to invoke the CreateMembers API again. To remove the details associated with a member account, * the delegated administrator must invoke the DeleteMembers API. *

*

* When the member accounts added through Organizations are later disassociated, you (administrator) can't invite * them by calling the InviteMembers API. You can create an association with these member accounts again only by * calling the CreateMembers API. *

*
*

* This is a convenience which creates an instance of the {@link DisassociateMembersRequest.Builder} avoiding the * need to create one manually via {@link DisassociateMembersRequest#builder()} *

* * @param disassociateMembersRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.guardduty.model.DisassociateMembersRequest.Builder} to create a * request. * @return Result of the DisassociateMembers operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.DisassociateMembers * @see AWS * API Documentation */ default DisassociateMembersResponse disassociateMembers( Consumer disassociateMembersRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return disassociateMembers(DisassociateMembersRequest.builder().applyMutation(disassociateMembersRequest).build()); } /** *

* Designates an Amazon Web Services account within the organization as your GuardDuty delegated administrator. Only * the organization's management account can run this API operation. *

* * @param enableOrganizationAdminAccountRequest * @return Result of the EnableOrganizationAdminAccount operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.EnableOrganizationAdminAccount * @see AWS API Documentation */ default EnableOrganizationAdminAccountResponse enableOrganizationAdminAccount( EnableOrganizationAdminAccountRequest enableOrganizationAdminAccountRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { throw new UnsupportedOperationException(); } /** *

* Designates an Amazon Web Services account within the organization as your GuardDuty delegated administrator. Only * the organization's management account can run this API operation. *

*
*

* This is a convenience which creates an instance of the {@link EnableOrganizationAdminAccountRequest.Builder} * avoiding the need to create one manually via {@link EnableOrganizationAdminAccountRequest#builder()} *

* * @param enableOrganizationAdminAccountRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.guardduty.model.EnableOrganizationAdminAccountRequest.Builder} to * create a request. * @return Result of the EnableOrganizationAdminAccount operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.EnableOrganizationAdminAccount * @see AWS API Documentation */ default EnableOrganizationAdminAccountResponse enableOrganizationAdminAccount( Consumer enableOrganizationAdminAccountRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return enableOrganizationAdminAccount(EnableOrganizationAdminAccountRequest.builder() .applyMutation(enableOrganizationAdminAccountRequest).build()); } /** *

* Provides the details of the GuardDuty administrator account associated with the current GuardDuty member account. *

* *

* If the organization's management account or a delegated administrator runs this API, it will return success ( * HTTP 200) but no content. *

*
* * @param getAdministratorAccountRequest * @return Result of the GetAdministratorAccount operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.GetAdministratorAccount * @see AWS API Documentation */ default GetAdministratorAccountResponse getAdministratorAccount(GetAdministratorAccountRequest getAdministratorAccountRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { throw new UnsupportedOperationException(); } /** *

* Provides the details of the GuardDuty administrator account associated with the current GuardDuty member account. *

* *

* If the organization's management account or a delegated administrator runs this API, it will return success ( * HTTP 200) but no content. *

*

*

* This is a convenience which creates an instance of the {@link GetAdministratorAccountRequest.Builder} avoiding * the need to create one manually via {@link GetAdministratorAccountRequest#builder()} *

* * @param getAdministratorAccountRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.guardduty.model.GetAdministratorAccountRequest.Builder} to create a * request. * @return Result of the GetAdministratorAccount operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.GetAdministratorAccount * @see AWS API Documentation */ default GetAdministratorAccountResponse getAdministratorAccount( Consumer getAdministratorAccountRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return getAdministratorAccount(GetAdministratorAccountRequest.builder().applyMutation(getAdministratorAccountRequest) .build()); } /** *

* Retrieves aggregated statistics for your account. If you are a GuardDuty administrator, you can retrieve the * statistics for all the resources associated with the active member accounts in your organization who have enabled * Runtime Monitoring and have the GuardDuty security agent running on their resources. *

* * @param getCoverageStatisticsRequest * @return Result of the GetCoverageStatistics operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.GetCoverageStatistics * @see AWS API Documentation */ default GetCoverageStatisticsResponse getCoverageStatistics(GetCoverageStatisticsRequest getCoverageStatisticsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { throw new UnsupportedOperationException(); } /** *

* Retrieves aggregated statistics for your account. If you are a GuardDuty administrator, you can retrieve the * statistics for all the resources associated with the active member accounts in your organization who have enabled * Runtime Monitoring and have the GuardDuty security agent running on their resources. *

*
*

* This is a convenience which creates an instance of the {@link GetCoverageStatisticsRequest.Builder} avoiding the * need to create one manually via {@link GetCoverageStatisticsRequest#builder()} *

* * @param getCoverageStatisticsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.guardduty.model.GetCoverageStatisticsRequest.Builder} to create a * request. * @return Result of the GetCoverageStatistics operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.GetCoverageStatistics * @see AWS API Documentation */ default GetCoverageStatisticsResponse getCoverageStatistics( Consumer getCoverageStatisticsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return getCoverageStatistics(GetCoverageStatisticsRequest.builder().applyMutation(getCoverageStatisticsRequest).build()); } /** *

* Retrieves a GuardDuty detector specified by the detectorId. *

*

* There might be regional differences because some data sources might not be available in all the Amazon Web * Services Regions where GuardDuty is presently supported. For more information, see Regions and endpoints. *

* * @param getDetectorRequest * @return Result of the GetDetector operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.GetDetector * @see AWS API * Documentation */ default GetDetectorResponse getDetector(GetDetectorRequest getDetectorRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { throw new UnsupportedOperationException(); } /** *

* Retrieves a GuardDuty detector specified by the detectorId. *

*

* There might be regional differences because some data sources might not be available in all the Amazon Web * Services Regions where GuardDuty is presently supported. For more information, see Regions and endpoints. *

*
*

* This is a convenience which creates an instance of the {@link GetDetectorRequest.Builder} avoiding the need to * create one manually via {@link GetDetectorRequest#builder()} *

* * @param getDetectorRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.guardduty.model.GetDetectorRequest.Builder} to create a request. * @return Result of the GetDetector operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.GetDetector * @see AWS API * Documentation */ default GetDetectorResponse getDetector(Consumer getDetectorRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return getDetector(GetDetectorRequest.builder().applyMutation(getDetectorRequest).build()); } /** *

* Returns the details of the filter specified by the filter name. *

* * @param getFilterRequest * @return Result of the GetFilter operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.GetFilter * @see AWS API * Documentation */ default GetFilterResponse getFilter(GetFilterRequest getFilterRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { throw new UnsupportedOperationException(); } /** *

* Returns the details of the filter specified by the filter name. *

*
*

* This is a convenience which creates an instance of the {@link GetFilterRequest.Builder} avoiding the need to * create one manually via {@link GetFilterRequest#builder()} *

* * @param getFilterRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.guardduty.model.GetFilterRequest.Builder} to create a request. * @return Result of the GetFilter operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.GetFilter * @see AWS API * Documentation */ default GetFilterResponse getFilter(Consumer getFilterRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return getFilter(GetFilterRequest.builder().applyMutation(getFilterRequest).build()); } /** *

* Describes Amazon GuardDuty findings specified by finding IDs. *

* * @param getFindingsRequest * @return Result of the GetFindings operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.GetFindings * @see AWS API * Documentation */ default GetFindingsResponse getFindings(GetFindingsRequest getFindingsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { throw new UnsupportedOperationException(); } /** *

* Describes Amazon GuardDuty findings specified by finding IDs. *

*
*

* This is a convenience which creates an instance of the {@link GetFindingsRequest.Builder} avoiding the need to * create one manually via {@link GetFindingsRequest#builder()} *

* * @param getFindingsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.guardduty.model.GetFindingsRequest.Builder} to create a request. * @return Result of the GetFindings operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.GetFindings * @see AWS API * Documentation */ default GetFindingsResponse getFindings(Consumer getFindingsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return getFindings(GetFindingsRequest.builder().applyMutation(getFindingsRequest).build()); } /** *

* Lists GuardDuty findings statistics for the specified detector ID. *

*

* You must provide either findingStatisticTypes or groupBy parameter, and not both. You * can use the maxResults and orderBy parameters only when using groupBy. *

*

* There might be regional differences because some flags might not be available in all the Regions where GuardDuty * is currently supported. For more information, see Regions and endpoints. *

* * @param getFindingsStatisticsRequest * @return Result of the GetFindingsStatistics operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.GetFindingsStatistics * @see AWS API Documentation */ default GetFindingsStatisticsResponse getFindingsStatistics(GetFindingsStatisticsRequest getFindingsStatisticsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { throw new UnsupportedOperationException(); } /** *

* Lists GuardDuty findings statistics for the specified detector ID. *

*

* You must provide either findingStatisticTypes or groupBy parameter, and not both. You * can use the maxResults and orderBy parameters only when using groupBy. *

*

* There might be regional differences because some flags might not be available in all the Regions where GuardDuty * is currently supported. For more information, see Regions and endpoints. *

*
*

* This is a convenience which creates an instance of the {@link GetFindingsStatisticsRequest.Builder} avoiding the * need to create one manually via {@link GetFindingsStatisticsRequest#builder()} *

* * @param getFindingsStatisticsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.guardduty.model.GetFindingsStatisticsRequest.Builder} to create a * request. * @return Result of the GetFindingsStatistics operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.GetFindingsStatistics * @see AWS API Documentation */ default GetFindingsStatisticsResponse getFindingsStatistics( Consumer getFindingsStatisticsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return getFindingsStatistics(GetFindingsStatisticsRequest.builder().applyMutation(getFindingsStatisticsRequest).build()); } /** *

* Retrieves the IPSet specified by the ipSetId. *

* * @param getIpSetRequest * @return Result of the GetIPSet operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.GetIPSet * @see AWS API * Documentation */ default GetIpSetResponse getIPSet(GetIpSetRequest getIpSetRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { throw new UnsupportedOperationException(); } /** *

* Retrieves the IPSet specified by the ipSetId. *

*
*

* This is a convenience which creates an instance of the {@link GetIpSetRequest.Builder} avoiding the need to * create one manually via {@link GetIpSetRequest#builder()} *

* * @param getIpSetRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.guardduty.model.GetIpSetRequest.Builder} to create a request. * @return Result of the GetIPSet operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.GetIPSet * @see AWS API * Documentation */ default GetIpSetResponse getIPSet(Consumer getIpSetRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return getIPSet(GetIpSetRequest.builder().applyMutation(getIpSetRequest).build()); } /** *

* Returns the count of all GuardDuty membership invitations that were sent to the current member account except the * currently accepted invitation. *

* * @param getInvitationsCountRequest * @return Result of the GetInvitationsCount operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.GetInvitationsCount * @see AWS * API Documentation */ default GetInvitationsCountResponse getInvitationsCount(GetInvitationsCountRequest getInvitationsCountRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { throw new UnsupportedOperationException(); } /** *

* Returns the count of all GuardDuty membership invitations that were sent to the current member account except the * currently accepted invitation. *

*
*

* This is a convenience which creates an instance of the {@link GetInvitationsCountRequest.Builder} avoiding the * need to create one manually via {@link GetInvitationsCountRequest#builder()} *

* * @param getInvitationsCountRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.guardduty.model.GetInvitationsCountRequest.Builder} to create a * request. * @return Result of the GetInvitationsCount operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.GetInvitationsCount * @see AWS * API Documentation */ default GetInvitationsCountResponse getInvitationsCount( Consumer getInvitationsCountRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return getInvitationsCount(GetInvitationsCountRequest.builder().applyMutation(getInvitationsCountRequest).build()); } /** *

* Returns the count of all GuardDuty membership invitations that were sent to the current member account except the * currently accepted invitation. *

* * @return Result of the GetInvitationsCount operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.GetInvitationsCount * @see #getInvitationsCount(GetInvitationsCountRequest) * @see AWS * API Documentation */ default GetInvitationsCountResponse getInvitationsCount() throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return getInvitationsCount(GetInvitationsCountRequest.builder().build()); } /** *

* Retrieves the Malware Protection plan details associated with a Malware Protection plan ID. *

* * @param getMalwareProtectionPlanRequest * @return Result of the GetMalwareProtectionPlan operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws AccessDeniedException * An access denied exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws ResourceNotFoundException * The requested resource can't be found. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.GetMalwareProtectionPlan * @see AWS API Documentation */ default GetMalwareProtectionPlanResponse getMalwareProtectionPlan( GetMalwareProtectionPlanRequest getMalwareProtectionPlanRequest) throws BadRequestException, AccessDeniedException, InternalServerErrorException, ResourceNotFoundException, AwsServiceException, SdkClientException, GuardDutyException { throw new UnsupportedOperationException(); } /** *

* Retrieves the Malware Protection plan details associated with a Malware Protection plan ID. *

*
*

* This is a convenience which creates an instance of the {@link GetMalwareProtectionPlanRequest.Builder} avoiding * the need to create one manually via {@link GetMalwareProtectionPlanRequest#builder()} *

* * @param getMalwareProtectionPlanRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.guardduty.model.GetMalwareProtectionPlanRequest.Builder} to create * a request. * @return Result of the GetMalwareProtectionPlan operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws AccessDeniedException * An access denied exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws ResourceNotFoundException * The requested resource can't be found. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.GetMalwareProtectionPlan * @see AWS API Documentation */ default GetMalwareProtectionPlanResponse getMalwareProtectionPlan( Consumer getMalwareProtectionPlanRequest) throws BadRequestException, AccessDeniedException, InternalServerErrorException, ResourceNotFoundException, AwsServiceException, SdkClientException, GuardDutyException { return getMalwareProtectionPlan(GetMalwareProtectionPlanRequest.builder().applyMutation(getMalwareProtectionPlanRequest) .build()); } /** *

* Returns the details of the malware scan settings. *

*

* There might be regional differences because some data sources might not be available in all the Amazon Web * Services Regions where GuardDuty is presently supported. For more information, see Regions and endpoints. *

* * @param getMalwareScanSettingsRequest * @return Result of the GetMalwareScanSettings operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.GetMalwareScanSettings * @see AWS API Documentation */ default GetMalwareScanSettingsResponse getMalwareScanSettings(GetMalwareScanSettingsRequest getMalwareScanSettingsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { throw new UnsupportedOperationException(); } /** *

* Returns the details of the malware scan settings. *

*

* There might be regional differences because some data sources might not be available in all the Amazon Web * Services Regions where GuardDuty is presently supported. For more information, see Regions and endpoints. *

*
*

* This is a convenience which creates an instance of the {@link GetMalwareScanSettingsRequest.Builder} avoiding the * need to create one manually via {@link GetMalwareScanSettingsRequest#builder()} *

* * @param getMalwareScanSettingsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.guardduty.model.GetMalwareScanSettingsRequest.Builder} to create a * request. * @return Result of the GetMalwareScanSettings operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.GetMalwareScanSettings * @see AWS API Documentation */ default GetMalwareScanSettingsResponse getMalwareScanSettings( Consumer getMalwareScanSettingsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return getMalwareScanSettings(GetMalwareScanSettingsRequest.builder().applyMutation(getMalwareScanSettingsRequest) .build()); } /** *

* Provides the details for the GuardDuty administrator account associated with the current GuardDuty member * account. *

* * @param getMasterAccountRequest * @return Result of the GetMasterAccount operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.GetMasterAccount * @see AWS * API Documentation * * @deprecated This operation is deprecated, use GetAdministratorAccount instead */ @Deprecated default GetMasterAccountResponse getMasterAccount(GetMasterAccountRequest getMasterAccountRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { throw new UnsupportedOperationException(); } /** *

* Provides the details for the GuardDuty administrator account associated with the current GuardDuty member * account. *

*
*

* This is a convenience which creates an instance of the {@link GetMasterAccountRequest.Builder} avoiding the need * to create one manually via {@link GetMasterAccountRequest#builder()} *

* * @param getMasterAccountRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.guardduty.model.GetMasterAccountRequest.Builder} to create a * request. * @return Result of the GetMasterAccount operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.GetMasterAccount * @see AWS * API Documentation * * @deprecated This operation is deprecated, use GetAdministratorAccount instead */ @Deprecated default GetMasterAccountResponse getMasterAccount(Consumer getMasterAccountRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return getMasterAccount(GetMasterAccountRequest.builder().applyMutation(getMasterAccountRequest).build()); } /** *

* Describes which data sources are enabled for the member account's detector. *

*

* There might be regional differences because some data sources might not be available in all the Amazon Web * Services Regions where GuardDuty is presently supported. For more information, see Regions and endpoints. *

* * @param getMemberDetectorsRequest * @return Result of the GetMemberDetectors operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.GetMemberDetectors * @see AWS * API Documentation */ default GetMemberDetectorsResponse getMemberDetectors(GetMemberDetectorsRequest getMemberDetectorsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { throw new UnsupportedOperationException(); } /** *

* Describes which data sources are enabled for the member account's detector. *

*

* There might be regional differences because some data sources might not be available in all the Amazon Web * Services Regions where GuardDuty is presently supported. For more information, see Regions and endpoints. *

*
*

* This is a convenience which creates an instance of the {@link GetMemberDetectorsRequest.Builder} avoiding the * need to create one manually via {@link GetMemberDetectorsRequest#builder()} *

* * @param getMemberDetectorsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.guardduty.model.GetMemberDetectorsRequest.Builder} to create a * request. * @return Result of the GetMemberDetectors operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.GetMemberDetectors * @see AWS * API Documentation */ default GetMemberDetectorsResponse getMemberDetectors(Consumer getMemberDetectorsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return getMemberDetectors(GetMemberDetectorsRequest.builder().applyMutation(getMemberDetectorsRequest).build()); } /** *

* Retrieves GuardDuty member accounts (of the current GuardDuty administrator account) specified by the account * IDs. *

* * @param getMembersRequest * @return Result of the GetMembers operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.GetMembers * @see AWS API * Documentation */ default GetMembersResponse getMembers(GetMembersRequest getMembersRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { throw new UnsupportedOperationException(); } /** *

* Retrieves GuardDuty member accounts (of the current GuardDuty administrator account) specified by the account * IDs. *

*
*

* This is a convenience which creates an instance of the {@link GetMembersRequest.Builder} avoiding the need to * create one manually via {@link GetMembersRequest#builder()} *

* * @param getMembersRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.guardduty.model.GetMembersRequest.Builder} to create a request. * @return Result of the GetMembers operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.GetMembers * @see AWS API * Documentation */ default GetMembersResponse getMembers(Consumer getMembersRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return getMembers(GetMembersRequest.builder().applyMutation(getMembersRequest).build()); } /** *

* Retrieves how many active member accounts have each feature enabled within GuardDuty. Only a delegated GuardDuty * administrator of an organization can run this API. *

*

* When you create a new organization, it might take up to 24 hours to generate the statistics for the entire * organization. *

* * @param getOrganizationStatisticsRequest * @return Result of the GetOrganizationStatistics operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.GetOrganizationStatistics * @see AWS API Documentation */ default GetOrganizationStatisticsResponse getOrganizationStatistics( GetOrganizationStatisticsRequest getOrganizationStatisticsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { throw new UnsupportedOperationException(); } /** *

* Retrieves how many active member accounts have each feature enabled within GuardDuty. Only a delegated GuardDuty * administrator of an organization can run this API. *

*

* When you create a new organization, it might take up to 24 hours to generate the statistics for the entire * organization. *

*
*

* This is a convenience which creates an instance of the {@link GetOrganizationStatisticsRequest.Builder} avoiding * the need to create one manually via {@link GetOrganizationStatisticsRequest#builder()} *

* * @param getOrganizationStatisticsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.guardduty.model.GetOrganizationStatisticsRequest.Builder} to create * a request. * @return Result of the GetOrganizationStatistics operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.GetOrganizationStatistics * @see AWS API Documentation */ default GetOrganizationStatisticsResponse getOrganizationStatistics( Consumer getOrganizationStatisticsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return getOrganizationStatistics(GetOrganizationStatisticsRequest.builder() .applyMutation(getOrganizationStatisticsRequest).build()); } /** *

* Provides the number of days left for each data source used in the free trial period. *

* * @param getRemainingFreeTrialDaysRequest * @return Result of the GetRemainingFreeTrialDays operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.GetRemainingFreeTrialDays * @see AWS API Documentation */ default GetRemainingFreeTrialDaysResponse getRemainingFreeTrialDays( GetRemainingFreeTrialDaysRequest getRemainingFreeTrialDaysRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { throw new UnsupportedOperationException(); } /** *

* Provides the number of days left for each data source used in the free trial period. *

*
*

* This is a convenience which creates an instance of the {@link GetRemainingFreeTrialDaysRequest.Builder} avoiding * the need to create one manually via {@link GetRemainingFreeTrialDaysRequest#builder()} *

* * @param getRemainingFreeTrialDaysRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.guardduty.model.GetRemainingFreeTrialDaysRequest.Builder} to create * a request. * @return Result of the GetRemainingFreeTrialDays operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.GetRemainingFreeTrialDays * @see AWS API Documentation */ default GetRemainingFreeTrialDaysResponse getRemainingFreeTrialDays( Consumer getRemainingFreeTrialDaysRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return getRemainingFreeTrialDays(GetRemainingFreeTrialDaysRequest.builder() .applyMutation(getRemainingFreeTrialDaysRequest).build()); } /** *

* Retrieves the ThreatIntelSet that is specified by the ThreatIntelSet ID. *

* * @param getThreatIntelSetRequest * @return Result of the GetThreatIntelSet operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.GetThreatIntelSet * @see AWS * API Documentation */ default GetThreatIntelSetResponse getThreatIntelSet(GetThreatIntelSetRequest getThreatIntelSetRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { throw new UnsupportedOperationException(); } /** *

* Retrieves the ThreatIntelSet that is specified by the ThreatIntelSet ID. *

*
*

* This is a convenience which creates an instance of the {@link GetThreatIntelSetRequest.Builder} avoiding the need * to create one manually via {@link GetThreatIntelSetRequest#builder()} *

* * @param getThreatIntelSetRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.guardduty.model.GetThreatIntelSetRequest.Builder} to create a * request. * @return Result of the GetThreatIntelSet operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.GetThreatIntelSet * @see AWS * API Documentation */ default GetThreatIntelSetResponse getThreatIntelSet(Consumer getThreatIntelSetRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return getThreatIntelSet(GetThreatIntelSetRequest.builder().applyMutation(getThreatIntelSetRequest).build()); } /** *

* Lists Amazon GuardDuty usage statistics over the last 30 days for the specified detector ID. For newly enabled * detectors or data sources, the cost returned will include only the usage so far under 30 days. This may differ * from the cost metrics in the console, which project usage over 30 days to provide a monthly cost estimate. For * more information, see Understanding How * Usage Costs are Calculated. *

* * @param getUsageStatisticsRequest * @return Result of the GetUsageStatistics operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.GetUsageStatistics * @see AWS * API Documentation */ default GetUsageStatisticsResponse getUsageStatistics(GetUsageStatisticsRequest getUsageStatisticsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { throw new UnsupportedOperationException(); } /** *

* Lists Amazon GuardDuty usage statistics over the last 30 days for the specified detector ID. For newly enabled * detectors or data sources, the cost returned will include only the usage so far under 30 days. This may differ * from the cost metrics in the console, which project usage over 30 days to provide a monthly cost estimate. For * more information, see Understanding How * Usage Costs are Calculated. *

*
*

* This is a convenience which creates an instance of the {@link GetUsageStatisticsRequest.Builder} avoiding the * need to create one manually via {@link GetUsageStatisticsRequest#builder()} *

* * @param getUsageStatisticsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.guardduty.model.GetUsageStatisticsRequest.Builder} to create a * request. * @return Result of the GetUsageStatistics operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.GetUsageStatistics * @see AWS * API Documentation */ default GetUsageStatisticsResponse getUsageStatistics(Consumer getUsageStatisticsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return getUsageStatistics(GetUsageStatisticsRequest.builder().applyMutation(getUsageStatisticsRequest).build()); } /** *

* This is a variant of * {@link #getUsageStatistics(software.amazon.awssdk.services.guardduty.model.GetUsageStatisticsRequest)} 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 * *
     * {@code
     * software.amazon.awssdk.services.guardduty.paginators.GetUsageStatisticsIterable responses = client.getUsageStatisticsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.guardduty.paginators.GetUsageStatisticsIterable responses = client
     *             .getUsageStatisticsPaginator(request);
     *     for (software.amazon.awssdk.services.guardduty.model.GetUsageStatisticsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.guardduty.paginators.GetUsageStatisticsIterable responses = client.getUsageStatisticsPaginator(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 * {@link #getUsageStatistics(software.amazon.awssdk.services.guardduty.model.GetUsageStatisticsRequest)} * operation. *

* * @param getUsageStatisticsRequest * @return A custom iterable that can be used to iterate through all the response pages. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.GetUsageStatistics * @see AWS * API Documentation */ default GetUsageStatisticsIterable getUsageStatisticsPaginator(GetUsageStatisticsRequest getUsageStatisticsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return new GetUsageStatisticsIterable(this, getUsageStatisticsRequest); } /** *

* This is a variant of * {@link #getUsageStatistics(software.amazon.awssdk.services.guardduty.model.GetUsageStatisticsRequest)} 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 * *
     * {@code
     * software.amazon.awssdk.services.guardduty.paginators.GetUsageStatisticsIterable responses = client.getUsageStatisticsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.guardduty.paginators.GetUsageStatisticsIterable responses = client
     *             .getUsageStatisticsPaginator(request);
     *     for (software.amazon.awssdk.services.guardduty.model.GetUsageStatisticsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.guardduty.paginators.GetUsageStatisticsIterable responses = client.getUsageStatisticsPaginator(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 * {@link #getUsageStatistics(software.amazon.awssdk.services.guardduty.model.GetUsageStatisticsRequest)} * operation. *

*
*

* This is a convenience which creates an instance of the {@link GetUsageStatisticsRequest.Builder} avoiding the * need to create one manually via {@link GetUsageStatisticsRequest#builder()} *

* * @param getUsageStatisticsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.guardduty.model.GetUsageStatisticsRequest.Builder} to create a * request. * @return A custom iterable that can be used to iterate through all the response pages. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.GetUsageStatistics * @see AWS * API Documentation */ default GetUsageStatisticsIterable getUsageStatisticsPaginator( Consumer getUsageStatisticsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return getUsageStatisticsPaginator(GetUsageStatisticsRequest.builder().applyMutation(getUsageStatisticsRequest).build()); } /** *

* Invites Amazon Web Services accounts to become members of an organization administered by the Amazon Web Services * account that invokes this API. If you are using Amazon Web Services Organizations to manage your GuardDuty * environment, this step is not needed. For more information, see Managing accounts with * organizations. *

*

* To invite Amazon Web Services accounts, the first step is to ensure that GuardDuty has been enabled in the * potential member accounts. You can now invoke this API to add accounts by invitation. The invited accounts can * either accept or decline the invitation from their GuardDuty accounts. Each invited Amazon Web Services account * can choose to accept the invitation from only one Amazon Web Services account. For more information, see Managing GuardDuty accounts by * invitation. *

*

* After the invite has been accepted and you choose to disassociate a member account (by using DisassociateMembers) from your account, the details of the member account obtained by invoking CreateMembers, * including the associated email addresses, will be retained. This is done so that you can invoke InviteMembers * without the need to invoke CreateMembers again. * To remove the details associated with a member account, you must also invoke DeleteMembers. *

*

* If you disassociate a member account that was added by invitation, the member account details obtained from this * API, including the associated email addresses, will be retained. This is done so that the delegated administrator * can invoke the InviteMembers API * without the need to invoke the CreateMembers API again. To remove the details associated with a member account, * the delegated administrator must invoke the DeleteMembers API. *

*

* When the member accounts added through Organizations are later disassociated, you (administrator) can't invite * them by calling the InviteMembers API. You can create an association with these member accounts again only by * calling the CreateMembers API. *

* * @param inviteMembersRequest * @return Result of the InviteMembers operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.InviteMembers * @see AWS API * Documentation */ default InviteMembersResponse inviteMembers(InviteMembersRequest inviteMembersRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { throw new UnsupportedOperationException(); } /** *

* Invites Amazon Web Services accounts to become members of an organization administered by the Amazon Web Services * account that invokes this API. If you are using Amazon Web Services Organizations to manage your GuardDuty * environment, this step is not needed. For more information, see Managing accounts with * organizations. *

*

* To invite Amazon Web Services accounts, the first step is to ensure that GuardDuty has been enabled in the * potential member accounts. You can now invoke this API to add accounts by invitation. The invited accounts can * either accept or decline the invitation from their GuardDuty accounts. Each invited Amazon Web Services account * can choose to accept the invitation from only one Amazon Web Services account. For more information, see Managing GuardDuty accounts by * invitation. *

*

* After the invite has been accepted and you choose to disassociate a member account (by using DisassociateMembers) from your account, the details of the member account obtained by invoking CreateMembers, * including the associated email addresses, will be retained. This is done so that you can invoke InviteMembers * without the need to invoke CreateMembers again. * To remove the details associated with a member account, you must also invoke DeleteMembers. *

*

* If you disassociate a member account that was added by invitation, the member account details obtained from this * API, including the associated email addresses, will be retained. This is done so that the delegated administrator * can invoke the InviteMembers API * without the need to invoke the CreateMembers API again. To remove the details associated with a member account, * the delegated administrator must invoke the DeleteMembers API. *

*

* When the member accounts added through Organizations are later disassociated, you (administrator) can't invite * them by calling the InviteMembers API. You can create an association with these member accounts again only by * calling the CreateMembers API. *

*
*

* This is a convenience which creates an instance of the {@link InviteMembersRequest.Builder} avoiding the need to * create one manually via {@link InviteMembersRequest#builder()} *

* * @param inviteMembersRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.guardduty.model.InviteMembersRequest.Builder} to create a request. * @return Result of the InviteMembers operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.InviteMembers * @see AWS API * Documentation */ default InviteMembersResponse inviteMembers(Consumer inviteMembersRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return inviteMembers(InviteMembersRequest.builder().applyMutation(inviteMembersRequest).build()); } /** *

* Lists coverage details for your GuardDuty account. If you're a GuardDuty administrator, you can retrieve all * resources associated with the active member accounts in your organization. *

*

* Make sure the accounts have Runtime Monitoring enabled and GuardDuty agent running on their resources. *

* * @param listCoverageRequest * @return Result of the ListCoverage operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.ListCoverage * @see AWS API * Documentation */ default ListCoverageResponse listCoverage(ListCoverageRequest listCoverageRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { throw new UnsupportedOperationException(); } /** *

* Lists coverage details for your GuardDuty account. If you're a GuardDuty administrator, you can retrieve all * resources associated with the active member accounts in your organization. *

*

* Make sure the accounts have Runtime Monitoring enabled and GuardDuty agent running on their resources. *

*
*

* This is a convenience which creates an instance of the {@link ListCoverageRequest.Builder} avoiding the need to * create one manually via {@link ListCoverageRequest#builder()} *

* * @param listCoverageRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.guardduty.model.ListCoverageRequest.Builder} to create a request. * @return Result of the ListCoverage operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.ListCoverage * @see AWS API * Documentation */ default ListCoverageResponse listCoverage(Consumer listCoverageRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return listCoverage(ListCoverageRequest.builder().applyMutation(listCoverageRequest).build()); } /** *

* This is a variant of {@link #listCoverage(software.amazon.awssdk.services.guardduty.model.ListCoverageRequest)} * 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 * *
     * {@code
     * software.amazon.awssdk.services.guardduty.paginators.ListCoverageIterable responses = client.listCoveragePaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.guardduty.paginators.ListCoverageIterable responses = client.listCoveragePaginator(request);
     *     for (software.amazon.awssdk.services.guardduty.model.ListCoverageResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.guardduty.paginators.ListCoverageIterable responses = client.listCoveragePaginator(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 * {@link #listCoverage(software.amazon.awssdk.services.guardduty.model.ListCoverageRequest)} operation. *

* * @param listCoverageRequest * @return A custom iterable that can be used to iterate through all the response pages. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.ListCoverage * @see AWS API * Documentation */ default ListCoverageIterable listCoveragePaginator(ListCoverageRequest listCoverageRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return new ListCoverageIterable(this, listCoverageRequest); } /** *

* This is a variant of {@link #listCoverage(software.amazon.awssdk.services.guardduty.model.ListCoverageRequest)} * 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 * *
     * {@code
     * software.amazon.awssdk.services.guardduty.paginators.ListCoverageIterable responses = client.listCoveragePaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.guardduty.paginators.ListCoverageIterable responses = client.listCoveragePaginator(request);
     *     for (software.amazon.awssdk.services.guardduty.model.ListCoverageResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.guardduty.paginators.ListCoverageIterable responses = client.listCoveragePaginator(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 * {@link #listCoverage(software.amazon.awssdk.services.guardduty.model.ListCoverageRequest)} operation. *

*
*

* This is a convenience which creates an instance of the {@link ListCoverageRequest.Builder} avoiding the need to * create one manually via {@link ListCoverageRequest#builder()} *

* * @param listCoverageRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.guardduty.model.ListCoverageRequest.Builder} to create a request. * @return A custom iterable that can be used to iterate through all the response pages. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.ListCoverage * @see AWS API * Documentation */ default ListCoverageIterable listCoveragePaginator(Consumer listCoverageRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return listCoveragePaginator(ListCoverageRequest.builder().applyMutation(listCoverageRequest).build()); } /** *

* Lists detectorIds of all the existing Amazon GuardDuty detector resources. *

* * @param listDetectorsRequest * @return Result of the ListDetectors operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.ListDetectors * @see AWS API * Documentation */ default ListDetectorsResponse listDetectors(ListDetectorsRequest listDetectorsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { throw new UnsupportedOperationException(); } /** *

* Lists detectorIds of all the existing Amazon GuardDuty detector resources. *

*
*

* This is a convenience which creates an instance of the {@link ListDetectorsRequest.Builder} avoiding the need to * create one manually via {@link ListDetectorsRequest#builder()} *

* * @param listDetectorsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.guardduty.model.ListDetectorsRequest.Builder} to create a request. * @return Result of the ListDetectors operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.ListDetectors * @see AWS API * Documentation */ default ListDetectorsResponse listDetectors(Consumer listDetectorsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return listDetectors(ListDetectorsRequest.builder().applyMutation(listDetectorsRequest).build()); } /** *

* Lists detectorIds of all the existing Amazon GuardDuty detector resources. *

* * @return Result of the ListDetectors operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.ListDetectors * @see #listDetectors(ListDetectorsRequest) * @see AWS API * Documentation */ default ListDetectorsResponse listDetectors() throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return listDetectors(ListDetectorsRequest.builder().build()); } /** *

* This is a variant of {@link #listDetectors(software.amazon.awssdk.services.guardduty.model.ListDetectorsRequest)} * 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 * *
     * {@code
     * software.amazon.awssdk.services.guardduty.paginators.ListDetectorsIterable responses = client.listDetectorsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.guardduty.paginators.ListDetectorsIterable responses = client.listDetectorsPaginator(request);
     *     for (software.amazon.awssdk.services.guardduty.model.ListDetectorsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.guardduty.paginators.ListDetectorsIterable responses = client.listDetectorsPaginator(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 * {@link #listDetectors(software.amazon.awssdk.services.guardduty.model.ListDetectorsRequest)} operation. *

* * @return A custom iterable that can be used to iterate through all the response pages. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.ListDetectors * @see #listDetectorsPaginator(ListDetectorsRequest) * @see AWS API * Documentation */ default ListDetectorsIterable listDetectorsPaginator() throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return listDetectorsPaginator(ListDetectorsRequest.builder().build()); } /** *

* This is a variant of {@link #listDetectors(software.amazon.awssdk.services.guardduty.model.ListDetectorsRequest)} * 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 * *
     * {@code
     * software.amazon.awssdk.services.guardduty.paginators.ListDetectorsIterable responses = client.listDetectorsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.guardduty.paginators.ListDetectorsIterable responses = client.listDetectorsPaginator(request);
     *     for (software.amazon.awssdk.services.guardduty.model.ListDetectorsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.guardduty.paginators.ListDetectorsIterable responses = client.listDetectorsPaginator(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 * {@link #listDetectors(software.amazon.awssdk.services.guardduty.model.ListDetectorsRequest)} operation. *

* * @param listDetectorsRequest * @return A custom iterable that can be used to iterate through all the response pages. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.ListDetectors * @see AWS API * Documentation */ default ListDetectorsIterable listDetectorsPaginator(ListDetectorsRequest listDetectorsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return new ListDetectorsIterable(this, listDetectorsRequest); } /** *

* This is a variant of {@link #listDetectors(software.amazon.awssdk.services.guardduty.model.ListDetectorsRequest)} * 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 * *
     * {@code
     * software.amazon.awssdk.services.guardduty.paginators.ListDetectorsIterable responses = client.listDetectorsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.guardduty.paginators.ListDetectorsIterable responses = client.listDetectorsPaginator(request);
     *     for (software.amazon.awssdk.services.guardduty.model.ListDetectorsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.guardduty.paginators.ListDetectorsIterable responses = client.listDetectorsPaginator(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 * {@link #listDetectors(software.amazon.awssdk.services.guardduty.model.ListDetectorsRequest)} operation. *

*
*

* This is a convenience which creates an instance of the {@link ListDetectorsRequest.Builder} avoiding the need to * create one manually via {@link ListDetectorsRequest#builder()} *

* * @param listDetectorsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.guardduty.model.ListDetectorsRequest.Builder} to create a request. * @return A custom iterable that can be used to iterate through all the response pages. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.ListDetectors * @see AWS API * Documentation */ default ListDetectorsIterable listDetectorsPaginator(Consumer listDetectorsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return listDetectorsPaginator(ListDetectorsRequest.builder().applyMutation(listDetectorsRequest).build()); } /** *

* Returns a paginated list of the current filters. *

* * @param listFiltersRequest * @return Result of the ListFilters operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.ListFilters * @see AWS API * Documentation */ default ListFiltersResponse listFilters(ListFiltersRequest listFiltersRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { throw new UnsupportedOperationException(); } /** *

* Returns a paginated list of the current filters. *

*
*

* This is a convenience which creates an instance of the {@link ListFiltersRequest.Builder} avoiding the need to * create one manually via {@link ListFiltersRequest#builder()} *

* * @param listFiltersRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.guardduty.model.ListFiltersRequest.Builder} to create a request. * @return Result of the ListFilters operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.ListFilters * @see AWS API * Documentation */ default ListFiltersResponse listFilters(Consumer listFiltersRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return listFilters(ListFiltersRequest.builder().applyMutation(listFiltersRequest).build()); } /** *

* This is a variant of {@link #listFilters(software.amazon.awssdk.services.guardduty.model.ListFiltersRequest)} * 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 * *
     * {@code
     * software.amazon.awssdk.services.guardduty.paginators.ListFiltersIterable responses = client.listFiltersPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.guardduty.paginators.ListFiltersIterable responses = client.listFiltersPaginator(request);
     *     for (software.amazon.awssdk.services.guardduty.model.ListFiltersResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.guardduty.paginators.ListFiltersIterable responses = client.listFiltersPaginator(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 * {@link #listFilters(software.amazon.awssdk.services.guardduty.model.ListFiltersRequest)} operation. *

* * @param listFiltersRequest * @return A custom iterable that can be used to iterate through all the response pages. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.ListFilters * @see AWS API * Documentation */ default ListFiltersIterable listFiltersPaginator(ListFiltersRequest listFiltersRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return new ListFiltersIterable(this, listFiltersRequest); } /** *

* This is a variant of {@link #listFilters(software.amazon.awssdk.services.guardduty.model.ListFiltersRequest)} * 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 * *
     * {@code
     * software.amazon.awssdk.services.guardduty.paginators.ListFiltersIterable responses = client.listFiltersPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.guardduty.paginators.ListFiltersIterable responses = client.listFiltersPaginator(request);
     *     for (software.amazon.awssdk.services.guardduty.model.ListFiltersResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.guardduty.paginators.ListFiltersIterable responses = client.listFiltersPaginator(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 * {@link #listFilters(software.amazon.awssdk.services.guardduty.model.ListFiltersRequest)} operation. *

*
*

* This is a convenience which creates an instance of the {@link ListFiltersRequest.Builder} avoiding the need to * create one manually via {@link ListFiltersRequest#builder()} *

* * @param listFiltersRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.guardduty.model.ListFiltersRequest.Builder} to create a request. * @return A custom iterable that can be used to iterate through all the response pages. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.ListFilters * @see AWS API * Documentation */ default ListFiltersIterable listFiltersPaginator(Consumer listFiltersRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return listFiltersPaginator(ListFiltersRequest.builder().applyMutation(listFiltersRequest).build()); } /** *

* Lists GuardDuty findings for the specified detector ID. *

*

* There might be regional differences because some flags might not be available in all the Regions where GuardDuty * is currently supported. For more information, see Regions and endpoints. *

* * @param listFindingsRequest * @return Result of the ListFindings operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.ListFindings * @see AWS API * Documentation */ default ListFindingsResponse listFindings(ListFindingsRequest listFindingsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { throw new UnsupportedOperationException(); } /** *

* Lists GuardDuty findings for the specified detector ID. *

*

* There might be regional differences because some flags might not be available in all the Regions where GuardDuty * is currently supported. For more information, see Regions and endpoints. *

*
*

* This is a convenience which creates an instance of the {@link ListFindingsRequest.Builder} avoiding the need to * create one manually via {@link ListFindingsRequest#builder()} *

* * @param listFindingsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.guardduty.model.ListFindingsRequest.Builder} to create a request. * @return Result of the ListFindings operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.ListFindings * @see AWS API * Documentation */ default ListFindingsResponse listFindings(Consumer listFindingsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return listFindings(ListFindingsRequest.builder().applyMutation(listFindingsRequest).build()); } /** *

* This is a variant of {@link #listFindings(software.amazon.awssdk.services.guardduty.model.ListFindingsRequest)} * 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 * *
     * {@code
     * software.amazon.awssdk.services.guardduty.paginators.ListFindingsIterable responses = client.listFindingsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.guardduty.paginators.ListFindingsIterable responses = client.listFindingsPaginator(request);
     *     for (software.amazon.awssdk.services.guardduty.model.ListFindingsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.guardduty.paginators.ListFindingsIterable responses = client.listFindingsPaginator(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 * {@link #listFindings(software.amazon.awssdk.services.guardduty.model.ListFindingsRequest)} operation. *

* * @param listFindingsRequest * @return A custom iterable that can be used to iterate through all the response pages. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.ListFindings * @see AWS API * Documentation */ default ListFindingsIterable listFindingsPaginator(ListFindingsRequest listFindingsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return new ListFindingsIterable(this, listFindingsRequest); } /** *

* This is a variant of {@link #listFindings(software.amazon.awssdk.services.guardduty.model.ListFindingsRequest)} * 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 * *
     * {@code
     * software.amazon.awssdk.services.guardduty.paginators.ListFindingsIterable responses = client.listFindingsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.guardduty.paginators.ListFindingsIterable responses = client.listFindingsPaginator(request);
     *     for (software.amazon.awssdk.services.guardduty.model.ListFindingsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.guardduty.paginators.ListFindingsIterable responses = client.listFindingsPaginator(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 * {@link #listFindings(software.amazon.awssdk.services.guardduty.model.ListFindingsRequest)} operation. *

*
*

* This is a convenience which creates an instance of the {@link ListFindingsRequest.Builder} avoiding the need to * create one manually via {@link ListFindingsRequest#builder()} *

* * @param listFindingsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.guardduty.model.ListFindingsRequest.Builder} to create a request. * @return A custom iterable that can be used to iterate through all the response pages. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.ListFindings * @see AWS API * Documentation */ default ListFindingsIterable listFindingsPaginator(Consumer listFindingsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return listFindingsPaginator(ListFindingsRequest.builder().applyMutation(listFindingsRequest).build()); } /** *

* Lists the IPSets of the GuardDuty service specified by the detector ID. If you use this operation from a member * account, the IPSets returned are the IPSets from the associated administrator account. *

* * @param listIpSetsRequest * @return Result of the ListIPSets operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.ListIPSets * @see AWS API * Documentation */ default ListIpSetsResponse listIPSets(ListIpSetsRequest listIpSetsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { throw new UnsupportedOperationException(); } /** *

* Lists the IPSets of the GuardDuty service specified by the detector ID. If you use this operation from a member * account, the IPSets returned are the IPSets from the associated administrator account. *

*
*

* This is a convenience which creates an instance of the {@link ListIpSetsRequest.Builder} avoiding the need to * create one manually via {@link ListIpSetsRequest#builder()} *

* * @param listIpSetsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.guardduty.model.ListIpSetsRequest.Builder} to create a request. * @return Result of the ListIPSets operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.ListIPSets * @see AWS API * Documentation */ default ListIpSetsResponse listIPSets(Consumer listIpSetsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return listIPSets(ListIpSetsRequest.builder().applyMutation(listIpSetsRequest).build()); } /** *

* This is a variant of {@link #listIPSets(software.amazon.awssdk.services.guardduty.model.ListIpSetsRequest)} * 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 * *
     * {@code
     * software.amazon.awssdk.services.guardduty.paginators.ListIPSetsIterable responses = client.listIPSetsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.guardduty.paginators.ListIPSetsIterable responses = client.listIPSetsPaginator(request);
     *     for (software.amazon.awssdk.services.guardduty.model.ListIpSetsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.guardduty.paginators.ListIPSetsIterable responses = client.listIPSetsPaginator(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 * {@link #listIPSets(software.amazon.awssdk.services.guardduty.model.ListIpSetsRequest)} operation. *

* * @param listIpSetsRequest * @return A custom iterable that can be used to iterate through all the response pages. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.ListIPSets * @see AWS API * Documentation */ default ListIPSetsIterable listIPSetsPaginator(ListIpSetsRequest listIpSetsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return new ListIPSetsIterable(this, listIpSetsRequest); } /** *

* This is a variant of {@link #listIPSets(software.amazon.awssdk.services.guardduty.model.ListIpSetsRequest)} * 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 * *
     * {@code
     * software.amazon.awssdk.services.guardduty.paginators.ListIPSetsIterable responses = client.listIPSetsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.guardduty.paginators.ListIPSetsIterable responses = client.listIPSetsPaginator(request);
     *     for (software.amazon.awssdk.services.guardduty.model.ListIpSetsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.guardduty.paginators.ListIPSetsIterable responses = client.listIPSetsPaginator(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 * {@link #listIPSets(software.amazon.awssdk.services.guardduty.model.ListIpSetsRequest)} operation. *

*
*

* This is a convenience which creates an instance of the {@link ListIpSetsRequest.Builder} avoiding the need to * create one manually via {@link ListIpSetsRequest#builder()} *

* * @param listIpSetsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.guardduty.model.ListIpSetsRequest.Builder} to create a request. * @return A custom iterable that can be used to iterate through all the response pages. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.ListIPSets * @see AWS API * Documentation */ default ListIPSetsIterable listIPSetsPaginator(Consumer listIpSetsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return listIPSetsPaginator(ListIpSetsRequest.builder().applyMutation(listIpSetsRequest).build()); } /** *

* Lists all GuardDuty membership invitations that were sent to the current Amazon Web Services account. *

* * @param listInvitationsRequest * @return Result of the ListInvitations operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.ListInvitations * @see AWS API * Documentation */ default ListInvitationsResponse listInvitations(ListInvitationsRequest listInvitationsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { throw new UnsupportedOperationException(); } /** *

* Lists all GuardDuty membership invitations that were sent to the current Amazon Web Services account. *

*
*

* This is a convenience which creates an instance of the {@link ListInvitationsRequest.Builder} avoiding the need * to create one manually via {@link ListInvitationsRequest#builder()} *

* * @param listInvitationsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.guardduty.model.ListInvitationsRequest.Builder} to create a * request. * @return Result of the ListInvitations operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.ListInvitations * @see AWS API * Documentation */ default ListInvitationsResponse listInvitations(Consumer listInvitationsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return listInvitations(ListInvitationsRequest.builder().applyMutation(listInvitationsRequest).build()); } /** *

* Lists all GuardDuty membership invitations that were sent to the current Amazon Web Services account. *

* * @return Result of the ListInvitations operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.ListInvitations * @see #listInvitations(ListInvitationsRequest) * @see AWS API * Documentation */ default ListInvitationsResponse listInvitations() throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return listInvitations(ListInvitationsRequest.builder().build()); } /** *

* This is a variant of * {@link #listInvitations(software.amazon.awssdk.services.guardduty.model.ListInvitationsRequest)} 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 * *
     * {@code
     * software.amazon.awssdk.services.guardduty.paginators.ListInvitationsIterable responses = client.listInvitationsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.guardduty.paginators.ListInvitationsIterable responses = client
     *             .listInvitationsPaginator(request);
     *     for (software.amazon.awssdk.services.guardduty.model.ListInvitationsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.guardduty.paginators.ListInvitationsIterable responses = client.listInvitationsPaginator(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 * {@link #listInvitations(software.amazon.awssdk.services.guardduty.model.ListInvitationsRequest)} operation. *

* * @return A custom iterable that can be used to iterate through all the response pages. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.ListInvitations * @see #listInvitationsPaginator(ListInvitationsRequest) * @see AWS API * Documentation */ default ListInvitationsIterable listInvitationsPaginator() throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return listInvitationsPaginator(ListInvitationsRequest.builder().build()); } /** *

* This is a variant of * {@link #listInvitations(software.amazon.awssdk.services.guardduty.model.ListInvitationsRequest)} 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 * *
     * {@code
     * software.amazon.awssdk.services.guardduty.paginators.ListInvitationsIterable responses = client.listInvitationsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.guardduty.paginators.ListInvitationsIterable responses = client
     *             .listInvitationsPaginator(request);
     *     for (software.amazon.awssdk.services.guardduty.model.ListInvitationsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.guardduty.paginators.ListInvitationsIterable responses = client.listInvitationsPaginator(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 * {@link #listInvitations(software.amazon.awssdk.services.guardduty.model.ListInvitationsRequest)} operation. *

* * @param listInvitationsRequest * @return A custom iterable that can be used to iterate through all the response pages. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.ListInvitations * @see AWS API * Documentation */ default ListInvitationsIterable listInvitationsPaginator(ListInvitationsRequest listInvitationsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return new ListInvitationsIterable(this, listInvitationsRequest); } /** *

* This is a variant of * {@link #listInvitations(software.amazon.awssdk.services.guardduty.model.ListInvitationsRequest)} 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 * *
     * {@code
     * software.amazon.awssdk.services.guardduty.paginators.ListInvitationsIterable responses = client.listInvitationsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.guardduty.paginators.ListInvitationsIterable responses = client
     *             .listInvitationsPaginator(request);
     *     for (software.amazon.awssdk.services.guardduty.model.ListInvitationsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.guardduty.paginators.ListInvitationsIterable responses = client.listInvitationsPaginator(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 * {@link #listInvitations(software.amazon.awssdk.services.guardduty.model.ListInvitationsRequest)} operation. *

*
*

* This is a convenience which creates an instance of the {@link ListInvitationsRequest.Builder} avoiding the need * to create one manually via {@link ListInvitationsRequest#builder()} *

* * @param listInvitationsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.guardduty.model.ListInvitationsRequest.Builder} to create a * request. * @return A custom iterable that can be used to iterate through all the response pages. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.ListInvitations * @see AWS API * Documentation */ default ListInvitationsIterable listInvitationsPaginator(Consumer listInvitationsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return listInvitationsPaginator(ListInvitationsRequest.builder().applyMutation(listInvitationsRequest).build()); } /** *

* Lists the Malware Protection plan IDs associated with the protected resources in your Amazon Web Services * account. *

* * @param listMalwareProtectionPlansRequest * @return Result of the ListMalwareProtectionPlans operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws AccessDeniedException * An access denied exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.ListMalwareProtectionPlans * @see AWS API Documentation */ default ListMalwareProtectionPlansResponse listMalwareProtectionPlans( ListMalwareProtectionPlansRequest listMalwareProtectionPlansRequest) throws BadRequestException, AccessDeniedException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { throw new UnsupportedOperationException(); } /** *

* Lists the Malware Protection plan IDs associated with the protected resources in your Amazon Web Services * account. *

*
*

* This is a convenience which creates an instance of the {@link ListMalwareProtectionPlansRequest.Builder} avoiding * the need to create one manually via {@link ListMalwareProtectionPlansRequest#builder()} *

* * @param listMalwareProtectionPlansRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.guardduty.model.ListMalwareProtectionPlansRequest.Builder} to * create a request. * @return Result of the ListMalwareProtectionPlans operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws AccessDeniedException * An access denied exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.ListMalwareProtectionPlans * @see AWS API Documentation */ default ListMalwareProtectionPlansResponse listMalwareProtectionPlans( Consumer listMalwareProtectionPlansRequest) throws BadRequestException, AccessDeniedException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return listMalwareProtectionPlans(ListMalwareProtectionPlansRequest.builder() .applyMutation(listMalwareProtectionPlansRequest).build()); } /** *

* Lists details about all member accounts for the current GuardDuty administrator account. *

* * @param listMembersRequest * @return Result of the ListMembers operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.ListMembers * @see AWS API * Documentation */ default ListMembersResponse listMembers(ListMembersRequest listMembersRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { throw new UnsupportedOperationException(); } /** *

* Lists details about all member accounts for the current GuardDuty administrator account. *

*
*

* This is a convenience which creates an instance of the {@link ListMembersRequest.Builder} avoiding the need to * create one manually via {@link ListMembersRequest#builder()} *

* * @param listMembersRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.guardduty.model.ListMembersRequest.Builder} to create a request. * @return Result of the ListMembers operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.ListMembers * @see AWS API * Documentation */ default ListMembersResponse listMembers(Consumer listMembersRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return listMembers(ListMembersRequest.builder().applyMutation(listMembersRequest).build()); } /** *

* This is a variant of {@link #listMembers(software.amazon.awssdk.services.guardduty.model.ListMembersRequest)} * 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 * *
     * {@code
     * software.amazon.awssdk.services.guardduty.paginators.ListMembersIterable responses = client.listMembersPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.guardduty.paginators.ListMembersIterable responses = client.listMembersPaginator(request);
     *     for (software.amazon.awssdk.services.guardduty.model.ListMembersResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.guardduty.paginators.ListMembersIterable responses = client.listMembersPaginator(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 * {@link #listMembers(software.amazon.awssdk.services.guardduty.model.ListMembersRequest)} operation. *

* * @param listMembersRequest * @return A custom iterable that can be used to iterate through all the response pages. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.ListMembers * @see AWS API * Documentation */ default ListMembersIterable listMembersPaginator(ListMembersRequest listMembersRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return new ListMembersIterable(this, listMembersRequest); } /** *

* This is a variant of {@link #listMembers(software.amazon.awssdk.services.guardduty.model.ListMembersRequest)} * 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 * *
     * {@code
     * software.amazon.awssdk.services.guardduty.paginators.ListMembersIterable responses = client.listMembersPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.guardduty.paginators.ListMembersIterable responses = client.listMembersPaginator(request);
     *     for (software.amazon.awssdk.services.guardduty.model.ListMembersResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.guardduty.paginators.ListMembersIterable responses = client.listMembersPaginator(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 * {@link #listMembers(software.amazon.awssdk.services.guardduty.model.ListMembersRequest)} operation. *

*
*

* This is a convenience which creates an instance of the {@link ListMembersRequest.Builder} avoiding the need to * create one manually via {@link ListMembersRequest#builder()} *

* * @param listMembersRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.guardduty.model.ListMembersRequest.Builder} to create a request. * @return A custom iterable that can be used to iterate through all the response pages. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.ListMembers * @see AWS API * Documentation */ default ListMembersIterable listMembersPaginator(Consumer listMembersRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return listMembersPaginator(ListMembersRequest.builder().applyMutation(listMembersRequest).build()); } /** *

* Lists the accounts designated as GuardDuty delegated administrators. Only the organization's management account * can run this API operation. *

* * @param listOrganizationAdminAccountsRequest * @return Result of the ListOrganizationAdminAccounts operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.ListOrganizationAdminAccounts * @see AWS API Documentation */ default ListOrganizationAdminAccountsResponse listOrganizationAdminAccounts( ListOrganizationAdminAccountsRequest listOrganizationAdminAccountsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { throw new UnsupportedOperationException(); } /** *

* Lists the accounts designated as GuardDuty delegated administrators. Only the organization's management account * can run this API operation. *

*
*

* This is a convenience which creates an instance of the {@link ListOrganizationAdminAccountsRequest.Builder} * avoiding the need to create one manually via {@link ListOrganizationAdminAccountsRequest#builder()} *

* * @param listOrganizationAdminAccountsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.guardduty.model.ListOrganizationAdminAccountsRequest.Builder} to * create a request. * @return Result of the ListOrganizationAdminAccounts operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.ListOrganizationAdminAccounts * @see AWS API Documentation */ default ListOrganizationAdminAccountsResponse listOrganizationAdminAccounts( Consumer listOrganizationAdminAccountsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return listOrganizationAdminAccounts(ListOrganizationAdminAccountsRequest.builder() .applyMutation(listOrganizationAdminAccountsRequest).build()); } /** *

* This is a variant of * {@link #listOrganizationAdminAccounts(software.amazon.awssdk.services.guardduty.model.ListOrganizationAdminAccountsRequest)} * 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 * *
     * {@code
     * software.amazon.awssdk.services.guardduty.paginators.ListOrganizationAdminAccountsIterable responses = client.listOrganizationAdminAccountsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.guardduty.paginators.ListOrganizationAdminAccountsIterable responses = client
     *             .listOrganizationAdminAccountsPaginator(request);
     *     for (software.amazon.awssdk.services.guardduty.model.ListOrganizationAdminAccountsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.guardduty.paginators.ListOrganizationAdminAccountsIterable responses = client.listOrganizationAdminAccountsPaginator(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 * {@link #listOrganizationAdminAccounts(software.amazon.awssdk.services.guardduty.model.ListOrganizationAdminAccountsRequest)} * operation. *

* * @param listOrganizationAdminAccountsRequest * @return A custom iterable that can be used to iterate through all the response pages. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.ListOrganizationAdminAccounts * @see AWS API Documentation */ default ListOrganizationAdminAccountsIterable listOrganizationAdminAccountsPaginator( ListOrganizationAdminAccountsRequest listOrganizationAdminAccountsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return new ListOrganizationAdminAccountsIterable(this, listOrganizationAdminAccountsRequest); } /** *

* This is a variant of * {@link #listOrganizationAdminAccounts(software.amazon.awssdk.services.guardduty.model.ListOrganizationAdminAccountsRequest)} * 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 * *
     * {@code
     * software.amazon.awssdk.services.guardduty.paginators.ListOrganizationAdminAccountsIterable responses = client.listOrganizationAdminAccountsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.guardduty.paginators.ListOrganizationAdminAccountsIterable responses = client
     *             .listOrganizationAdminAccountsPaginator(request);
     *     for (software.amazon.awssdk.services.guardduty.model.ListOrganizationAdminAccountsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.guardduty.paginators.ListOrganizationAdminAccountsIterable responses = client.listOrganizationAdminAccountsPaginator(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 * {@link #listOrganizationAdminAccounts(software.amazon.awssdk.services.guardduty.model.ListOrganizationAdminAccountsRequest)} * operation. *

*
*

* This is a convenience which creates an instance of the {@link ListOrganizationAdminAccountsRequest.Builder} * avoiding the need to create one manually via {@link ListOrganizationAdminAccountsRequest#builder()} *

* * @param listOrganizationAdminAccountsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.guardduty.model.ListOrganizationAdminAccountsRequest.Builder} to * create a request. * @return A custom iterable that can be used to iterate through all the response pages. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.ListOrganizationAdminAccounts * @see AWS API Documentation */ default ListOrganizationAdminAccountsIterable listOrganizationAdminAccountsPaginator( Consumer listOrganizationAdminAccountsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return listOrganizationAdminAccountsPaginator(ListOrganizationAdminAccountsRequest.builder() .applyMutation(listOrganizationAdminAccountsRequest).build()); } /** *

* Returns a list of publishing destinations associated with the specified detectorId. *

* * @param listPublishingDestinationsRequest * @return Result of the ListPublishingDestinations operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.ListPublishingDestinations * @see AWS API Documentation */ default ListPublishingDestinationsResponse listPublishingDestinations( ListPublishingDestinationsRequest listPublishingDestinationsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { throw new UnsupportedOperationException(); } /** *

* Returns a list of publishing destinations associated with the specified detectorId. *

*
*

* This is a convenience which creates an instance of the {@link ListPublishingDestinationsRequest.Builder} avoiding * the need to create one manually via {@link ListPublishingDestinationsRequest#builder()} *

* * @param listPublishingDestinationsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.guardduty.model.ListPublishingDestinationsRequest.Builder} to * create a request. * @return Result of the ListPublishingDestinations operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.ListPublishingDestinations * @see AWS API Documentation */ default ListPublishingDestinationsResponse listPublishingDestinations( Consumer listPublishingDestinationsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return listPublishingDestinations(ListPublishingDestinationsRequest.builder() .applyMutation(listPublishingDestinationsRequest).build()); } /** *

* This is a variant of * {@link #listPublishingDestinations(software.amazon.awssdk.services.guardduty.model.ListPublishingDestinationsRequest)} * 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 * *
     * {@code
     * software.amazon.awssdk.services.guardduty.paginators.ListPublishingDestinationsIterable responses = client.listPublishingDestinationsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.guardduty.paginators.ListPublishingDestinationsIterable responses = client
     *             .listPublishingDestinationsPaginator(request);
     *     for (software.amazon.awssdk.services.guardduty.model.ListPublishingDestinationsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.guardduty.paginators.ListPublishingDestinationsIterable responses = client.listPublishingDestinationsPaginator(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 * {@link #listPublishingDestinations(software.amazon.awssdk.services.guardduty.model.ListPublishingDestinationsRequest)} * operation. *

* * @param listPublishingDestinationsRequest * @return A custom iterable that can be used to iterate through all the response pages. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.ListPublishingDestinations * @see AWS API Documentation */ default ListPublishingDestinationsIterable listPublishingDestinationsPaginator( ListPublishingDestinationsRequest listPublishingDestinationsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return new ListPublishingDestinationsIterable(this, listPublishingDestinationsRequest); } /** *

* This is a variant of * {@link #listPublishingDestinations(software.amazon.awssdk.services.guardduty.model.ListPublishingDestinationsRequest)} * 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 * *
     * {@code
     * software.amazon.awssdk.services.guardduty.paginators.ListPublishingDestinationsIterable responses = client.listPublishingDestinationsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.guardduty.paginators.ListPublishingDestinationsIterable responses = client
     *             .listPublishingDestinationsPaginator(request);
     *     for (software.amazon.awssdk.services.guardduty.model.ListPublishingDestinationsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.guardduty.paginators.ListPublishingDestinationsIterable responses = client.listPublishingDestinationsPaginator(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 * {@link #listPublishingDestinations(software.amazon.awssdk.services.guardduty.model.ListPublishingDestinationsRequest)} * operation. *

*
*

* This is a convenience which creates an instance of the {@link ListPublishingDestinationsRequest.Builder} avoiding * the need to create one manually via {@link ListPublishingDestinationsRequest#builder()} *

* * @param listPublishingDestinationsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.guardduty.model.ListPublishingDestinationsRequest.Builder} to * create a request. * @return A custom iterable that can be used to iterate through all the response pages. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.ListPublishingDestinations * @see AWS API Documentation */ default ListPublishingDestinationsIterable listPublishingDestinationsPaginator( Consumer listPublishingDestinationsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return listPublishingDestinationsPaginator(ListPublishingDestinationsRequest.builder() .applyMutation(listPublishingDestinationsRequest).build()); } /** *

* Lists tags for a resource. Tagging is currently supported for detectors, finding filters, IP sets, threat intel * sets, and publishing destination, with a limit of 50 tags per resource. When invoked, this operation returns all * assigned tags for a given resource. *

* * @param listTagsForResourceRequest * @return Result of the ListTagsForResource operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws AccessDeniedException * An access denied exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.ListTagsForResource * @see AWS * API Documentation */ default ListTagsForResourceResponse listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) throws BadRequestException, AccessDeniedException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { throw new UnsupportedOperationException(); } /** *

* Lists tags for a resource. Tagging is currently supported for detectors, finding filters, IP sets, threat intel * sets, and publishing destination, with a limit of 50 tags per resource. When invoked, this operation returns all * assigned tags for a given resource. *

*
*

* This is a convenience which creates an instance of the {@link ListTagsForResourceRequest.Builder} avoiding the * need to create one manually via {@link ListTagsForResourceRequest#builder()} *

* * @param listTagsForResourceRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.guardduty.model.ListTagsForResourceRequest.Builder} to create a * request. * @return Result of the ListTagsForResource operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws AccessDeniedException * An access denied exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.ListTagsForResource * @see AWS * API Documentation */ default ListTagsForResourceResponse listTagsForResource( Consumer listTagsForResourceRequest) throws BadRequestException, AccessDeniedException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return listTagsForResource(ListTagsForResourceRequest.builder().applyMutation(listTagsForResourceRequest).build()); } /** *

* Lists the ThreatIntelSets of the GuardDuty service specified by the detector ID. If you use this operation from a * member account, the ThreatIntelSets associated with the administrator account are returned. *

* * @param listThreatIntelSetsRequest * @return Result of the ListThreatIntelSets operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.ListThreatIntelSets * @see AWS * API Documentation */ default ListThreatIntelSetsResponse listThreatIntelSets(ListThreatIntelSetsRequest listThreatIntelSetsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { throw new UnsupportedOperationException(); } /** *

* Lists the ThreatIntelSets of the GuardDuty service specified by the detector ID. If you use this operation from a * member account, the ThreatIntelSets associated with the administrator account are returned. *

*
*

* This is a convenience which creates an instance of the {@link ListThreatIntelSetsRequest.Builder} avoiding the * need to create one manually via {@link ListThreatIntelSetsRequest#builder()} *

* * @param listThreatIntelSetsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.guardduty.model.ListThreatIntelSetsRequest.Builder} to create a * request. * @return Result of the ListThreatIntelSets operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.ListThreatIntelSets * @see AWS * API Documentation */ default ListThreatIntelSetsResponse listThreatIntelSets( Consumer listThreatIntelSetsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return listThreatIntelSets(ListThreatIntelSetsRequest.builder().applyMutation(listThreatIntelSetsRequest).build()); } /** *

* This is a variant of * {@link #listThreatIntelSets(software.amazon.awssdk.services.guardduty.model.ListThreatIntelSetsRequest)} * 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 * *
     * {@code
     * software.amazon.awssdk.services.guardduty.paginators.ListThreatIntelSetsIterable responses = client.listThreatIntelSetsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.guardduty.paginators.ListThreatIntelSetsIterable responses = client
     *             .listThreatIntelSetsPaginator(request);
     *     for (software.amazon.awssdk.services.guardduty.model.ListThreatIntelSetsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.guardduty.paginators.ListThreatIntelSetsIterable responses = client.listThreatIntelSetsPaginator(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 * {@link #listThreatIntelSets(software.amazon.awssdk.services.guardduty.model.ListThreatIntelSetsRequest)} * operation. *

* * @param listThreatIntelSetsRequest * @return A custom iterable that can be used to iterate through all the response pages. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.ListThreatIntelSets * @see AWS * API Documentation */ default ListThreatIntelSetsIterable listThreatIntelSetsPaginator(ListThreatIntelSetsRequest listThreatIntelSetsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return new ListThreatIntelSetsIterable(this, listThreatIntelSetsRequest); } /** *

* This is a variant of * {@link #listThreatIntelSets(software.amazon.awssdk.services.guardduty.model.ListThreatIntelSetsRequest)} * 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 * *
     * {@code
     * software.amazon.awssdk.services.guardduty.paginators.ListThreatIntelSetsIterable responses = client.listThreatIntelSetsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.guardduty.paginators.ListThreatIntelSetsIterable responses = client
     *             .listThreatIntelSetsPaginator(request);
     *     for (software.amazon.awssdk.services.guardduty.model.ListThreatIntelSetsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.guardduty.paginators.ListThreatIntelSetsIterable responses = client.listThreatIntelSetsPaginator(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 * {@link #listThreatIntelSets(software.amazon.awssdk.services.guardduty.model.ListThreatIntelSetsRequest)} * operation. *

*
*

* This is a convenience which creates an instance of the {@link ListThreatIntelSetsRequest.Builder} avoiding the * need to create one manually via {@link ListThreatIntelSetsRequest#builder()} *

* * @param listThreatIntelSetsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.guardduty.model.ListThreatIntelSetsRequest.Builder} to create a * request. * @return A custom iterable that can be used to iterate through all the response pages. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.ListThreatIntelSets * @see AWS * API Documentation */ default ListThreatIntelSetsIterable listThreatIntelSetsPaginator( Consumer listThreatIntelSetsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return listThreatIntelSetsPaginator(ListThreatIntelSetsRequest.builder().applyMutation(listThreatIntelSetsRequest) .build()); } /** *

* Initiates the malware scan. Invoking this API will automatically create the Service-linked * role in the corresponding account. *

*

* When the malware scan starts, you can use the associated scan ID to track the status of the scan. For more * information, see DescribeMalwareScans. *

* * @param startMalwareScanRequest * @return Result of the StartMalwareScan operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws ConflictException * A request conflict exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.StartMalwareScan * @see AWS * API Documentation */ default StartMalwareScanResponse startMalwareScan(StartMalwareScanRequest startMalwareScanRequest) throws BadRequestException, ConflictException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { throw new UnsupportedOperationException(); } /** *

* Initiates the malware scan. Invoking this API will automatically create the Service-linked * role in the corresponding account. *

*

* When the malware scan starts, you can use the associated scan ID to track the status of the scan. For more * information, see DescribeMalwareScans. *

*
*

* This is a convenience which creates an instance of the {@link StartMalwareScanRequest.Builder} avoiding the need * to create one manually via {@link StartMalwareScanRequest#builder()} *

* * @param startMalwareScanRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.guardduty.model.StartMalwareScanRequest.Builder} to create a * request. * @return Result of the StartMalwareScan operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws ConflictException * A request conflict exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.StartMalwareScan * @see AWS * API Documentation */ default StartMalwareScanResponse startMalwareScan(Consumer startMalwareScanRequest) throws BadRequestException, ConflictException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return startMalwareScan(StartMalwareScanRequest.builder().applyMutation(startMalwareScanRequest).build()); } /** *

* Turns on GuardDuty monitoring of the specified member accounts. Use this operation to restart monitoring of * accounts that you stopped monitoring with the StopMonitoringMembers operation. *

* * @param startMonitoringMembersRequest * @return Result of the StartMonitoringMembers operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.StartMonitoringMembers * @see AWS API Documentation */ default StartMonitoringMembersResponse startMonitoringMembers(StartMonitoringMembersRequest startMonitoringMembersRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { throw new UnsupportedOperationException(); } /** *

* Turns on GuardDuty monitoring of the specified member accounts. Use this operation to restart monitoring of * accounts that you stopped monitoring with the StopMonitoringMembers operation. *

*
*

* This is a convenience which creates an instance of the {@link StartMonitoringMembersRequest.Builder} avoiding the * need to create one manually via {@link StartMonitoringMembersRequest#builder()} *

* * @param startMonitoringMembersRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.guardduty.model.StartMonitoringMembersRequest.Builder} to create a * request. * @return Result of the StartMonitoringMembers operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.StartMonitoringMembers * @see AWS API Documentation */ default StartMonitoringMembersResponse startMonitoringMembers( Consumer startMonitoringMembersRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return startMonitoringMembers(StartMonitoringMembersRequest.builder().applyMutation(startMonitoringMembersRequest) .build()); } /** *

* Stops GuardDuty monitoring for the specified member accounts. Use the StartMonitoringMembers * operation to restart monitoring for those accounts. *

*

* With autoEnableOrganizationMembers configuration for your organization set to ALL, * you'll receive an error if you attempt to stop monitoring the member accounts in your organization. *

* * @param stopMonitoringMembersRequest * @return Result of the StopMonitoringMembers operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.StopMonitoringMembers * @see AWS API Documentation */ default StopMonitoringMembersResponse stopMonitoringMembers(StopMonitoringMembersRequest stopMonitoringMembersRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { throw new UnsupportedOperationException(); } /** *

* Stops GuardDuty monitoring for the specified member accounts. Use the StartMonitoringMembers * operation to restart monitoring for those accounts. *

*

* With autoEnableOrganizationMembers configuration for your organization set to ALL, * you'll receive an error if you attempt to stop monitoring the member accounts in your organization. *

*
*

* This is a convenience which creates an instance of the {@link StopMonitoringMembersRequest.Builder} avoiding the * need to create one manually via {@link StopMonitoringMembersRequest#builder()} *

* * @param stopMonitoringMembersRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.guardduty.model.StopMonitoringMembersRequest.Builder} to create a * request. * @return Result of the StopMonitoringMembers operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.StopMonitoringMembers * @see AWS API Documentation */ default StopMonitoringMembersResponse stopMonitoringMembers( Consumer stopMonitoringMembersRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return stopMonitoringMembers(StopMonitoringMembersRequest.builder().applyMutation(stopMonitoringMembersRequest).build()); } /** *

* Adds tags to a resource. *

* * @param tagResourceRequest * @return Result of the TagResource operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws AccessDeniedException * An access denied exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.TagResource * @see AWS API * Documentation */ default TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws BadRequestException, AccessDeniedException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { throw new UnsupportedOperationException(); } /** *

* Adds tags to a resource. *

*
*

* This is a convenience which creates an instance of the {@link TagResourceRequest.Builder} avoiding the need to * create one manually via {@link TagResourceRequest#builder()} *

* * @param tagResourceRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.guardduty.model.TagResourceRequest.Builder} to create a request. * @return Result of the TagResource operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws AccessDeniedException * An access denied exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.TagResource * @see AWS API * Documentation */ default TagResourceResponse tagResource(Consumer tagResourceRequest) throws BadRequestException, AccessDeniedException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return tagResource(TagResourceRequest.builder().applyMutation(tagResourceRequest).build()); } /** *

* Unarchives GuardDuty findings specified by the findingIds. *

* * @param unarchiveFindingsRequest * @return Result of the UnarchiveFindings operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.UnarchiveFindings * @see AWS * API Documentation */ default UnarchiveFindingsResponse unarchiveFindings(UnarchiveFindingsRequest unarchiveFindingsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { throw new UnsupportedOperationException(); } /** *

* Unarchives GuardDuty findings specified by the findingIds. *

*
*

* This is a convenience which creates an instance of the {@link UnarchiveFindingsRequest.Builder} avoiding the need * to create one manually via {@link UnarchiveFindingsRequest#builder()} *

* * @param unarchiveFindingsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.guardduty.model.UnarchiveFindingsRequest.Builder} to create a * request. * @return Result of the UnarchiveFindings operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.UnarchiveFindings * @see AWS * API Documentation */ default UnarchiveFindingsResponse unarchiveFindings(Consumer unarchiveFindingsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return unarchiveFindings(UnarchiveFindingsRequest.builder().applyMutation(unarchiveFindingsRequest).build()); } /** *

* Removes tags from a resource. *

* * @param untagResourceRequest * @return Result of the UntagResource operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws AccessDeniedException * An access denied exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.UntagResource * @see AWS API * Documentation */ default UntagResourceResponse untagResource(UntagResourceRequest untagResourceRequest) throws BadRequestException, AccessDeniedException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { throw new UnsupportedOperationException(); } /** *

* Removes tags from a resource. *

*
*

* This is a convenience which creates an instance of the {@link UntagResourceRequest.Builder} avoiding the need to * create one manually via {@link UntagResourceRequest#builder()} *

* * @param untagResourceRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.guardduty.model.UntagResourceRequest.Builder} to create a request. * @return Result of the UntagResource operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws AccessDeniedException * An access denied exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.UntagResource * @see AWS API * Documentation */ default UntagResourceResponse untagResource(Consumer untagResourceRequest) throws BadRequestException, AccessDeniedException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return untagResource(UntagResourceRequest.builder().applyMutation(untagResourceRequest).build()); } /** *

* Updates the GuardDuty detector specified by the detector ID. *

*

* Specifying both EKS Runtime Monitoring (EKS_RUNTIME_MONITORING) and Runtime Monitoring ( * RUNTIME_MONITORING) will cause an error. You can add only one of these two features because Runtime * Monitoring already includes the threat detection for Amazon EKS resources. For more information, see Runtime Monitoring. *

*

* There might be regional differences because some data sources might not be available in all the Amazon Web * Services Regions where GuardDuty is presently supported. For more information, see Regions and endpoints. *

* * @param updateDetectorRequest * @return Result of the UpdateDetector operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.UpdateDetector * @see AWS API * Documentation */ default UpdateDetectorResponse updateDetector(UpdateDetectorRequest updateDetectorRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { throw new UnsupportedOperationException(); } /** *

* Updates the GuardDuty detector specified by the detector ID. *

*

* Specifying both EKS Runtime Monitoring (EKS_RUNTIME_MONITORING) and Runtime Monitoring ( * RUNTIME_MONITORING) will cause an error. You can add only one of these two features because Runtime * Monitoring already includes the threat detection for Amazon EKS resources. For more information, see Runtime Monitoring. *

*

* There might be regional differences because some data sources might not be available in all the Amazon Web * Services Regions where GuardDuty is presently supported. For more information, see Regions and endpoints. *

*
*

* This is a convenience which creates an instance of the {@link UpdateDetectorRequest.Builder} avoiding the need to * create one manually via {@link UpdateDetectorRequest#builder()} *

* * @param updateDetectorRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.guardduty.model.UpdateDetectorRequest.Builder} to create a request. * @return Result of the UpdateDetector operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.UpdateDetector * @see AWS API * Documentation */ default UpdateDetectorResponse updateDetector(Consumer updateDetectorRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return updateDetector(UpdateDetectorRequest.builder().applyMutation(updateDetectorRequest).build()); } /** *

* Updates the filter specified by the filter name. *

* * @param updateFilterRequest * @return Result of the UpdateFilter operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.UpdateFilter * @see AWS API * Documentation */ default UpdateFilterResponse updateFilter(UpdateFilterRequest updateFilterRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { throw new UnsupportedOperationException(); } /** *

* Updates the filter specified by the filter name. *

*
*

* This is a convenience which creates an instance of the {@link UpdateFilterRequest.Builder} avoiding the need to * create one manually via {@link UpdateFilterRequest#builder()} *

* * @param updateFilterRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.guardduty.model.UpdateFilterRequest.Builder} to create a request. * @return Result of the UpdateFilter operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.UpdateFilter * @see AWS API * Documentation */ default UpdateFilterResponse updateFilter(Consumer updateFilterRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return updateFilter(UpdateFilterRequest.builder().applyMutation(updateFilterRequest).build()); } /** *

* Marks the specified GuardDuty findings as useful or not useful. *

* * @param updateFindingsFeedbackRequest * @return Result of the UpdateFindingsFeedback operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.UpdateFindingsFeedback * @see AWS API Documentation */ default UpdateFindingsFeedbackResponse updateFindingsFeedback(UpdateFindingsFeedbackRequest updateFindingsFeedbackRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { throw new UnsupportedOperationException(); } /** *

* Marks the specified GuardDuty findings as useful or not useful. *

*
*

* This is a convenience which creates an instance of the {@link UpdateFindingsFeedbackRequest.Builder} avoiding the * need to create one manually via {@link UpdateFindingsFeedbackRequest#builder()} *

* * @param updateFindingsFeedbackRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.guardduty.model.UpdateFindingsFeedbackRequest.Builder} to create a * request. * @return Result of the UpdateFindingsFeedback operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.UpdateFindingsFeedback * @see AWS API Documentation */ default UpdateFindingsFeedbackResponse updateFindingsFeedback( Consumer updateFindingsFeedbackRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return updateFindingsFeedback(UpdateFindingsFeedbackRequest.builder().applyMutation(updateFindingsFeedbackRequest) .build()); } /** *

* Updates the IPSet specified by the IPSet ID. *

* * @param updateIpSetRequest * @return Result of the UpdateIPSet operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.UpdateIPSet * @see AWS API * Documentation */ default UpdateIpSetResponse updateIPSet(UpdateIpSetRequest updateIpSetRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { throw new UnsupportedOperationException(); } /** *

* Updates the IPSet specified by the IPSet ID. *

*
*

* This is a convenience which creates an instance of the {@link UpdateIpSetRequest.Builder} avoiding the need to * create one manually via {@link UpdateIpSetRequest#builder()} *

* * @param updateIpSetRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.guardduty.model.UpdateIpSetRequest.Builder} to create a request. * @return Result of the UpdateIPSet operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.UpdateIPSet * @see AWS API * Documentation */ default UpdateIpSetResponse updateIPSet(Consumer updateIpSetRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return updateIPSet(UpdateIpSetRequest.builder().applyMutation(updateIpSetRequest).build()); } /** *

* Updates an existing Malware Protection plan resource. *

* * @param updateMalwareProtectionPlanRequest * @return Result of the UpdateMalwareProtectionPlan operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws AccessDeniedException * An access denied exception object. * @throws ResourceNotFoundException * The requested resource can't be found. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.UpdateMalwareProtectionPlan * @see AWS API Documentation */ default UpdateMalwareProtectionPlanResponse updateMalwareProtectionPlan( UpdateMalwareProtectionPlanRequest updateMalwareProtectionPlanRequest) throws BadRequestException, AccessDeniedException, ResourceNotFoundException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { throw new UnsupportedOperationException(); } /** *

* Updates an existing Malware Protection plan resource. *

*
*

* This is a convenience which creates an instance of the {@link UpdateMalwareProtectionPlanRequest.Builder} * avoiding the need to create one manually via {@link UpdateMalwareProtectionPlanRequest#builder()} *

* * @param updateMalwareProtectionPlanRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.guardduty.model.UpdateMalwareProtectionPlanRequest.Builder} to * create a request. * @return Result of the UpdateMalwareProtectionPlan operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws AccessDeniedException * An access denied exception object. * @throws ResourceNotFoundException * The requested resource can't be found. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.UpdateMalwareProtectionPlan * @see AWS API Documentation */ default UpdateMalwareProtectionPlanResponse updateMalwareProtectionPlan( Consumer updateMalwareProtectionPlanRequest) throws BadRequestException, AccessDeniedException, ResourceNotFoundException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return updateMalwareProtectionPlan(UpdateMalwareProtectionPlanRequest.builder() .applyMutation(updateMalwareProtectionPlanRequest).build()); } /** *

* Updates the malware scan settings. *

*

* There might be regional differences because some data sources might not be available in all the Amazon Web * Services Regions where GuardDuty is presently supported. For more information, see Regions and endpoints. *

* * @param updateMalwareScanSettingsRequest * @return Result of the UpdateMalwareScanSettings operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.UpdateMalwareScanSettings * @see AWS API Documentation */ default UpdateMalwareScanSettingsResponse updateMalwareScanSettings( UpdateMalwareScanSettingsRequest updateMalwareScanSettingsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { throw new UnsupportedOperationException(); } /** *

* Updates the malware scan settings. *

*

* There might be regional differences because some data sources might not be available in all the Amazon Web * Services Regions where GuardDuty is presently supported. For more information, see Regions and endpoints. *

*
*

* This is a convenience which creates an instance of the {@link UpdateMalwareScanSettingsRequest.Builder} avoiding * the need to create one manually via {@link UpdateMalwareScanSettingsRequest#builder()} *

* * @param updateMalwareScanSettingsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.guardduty.model.UpdateMalwareScanSettingsRequest.Builder} to create * a request. * @return Result of the UpdateMalwareScanSettings operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.UpdateMalwareScanSettings * @see AWS API Documentation */ default UpdateMalwareScanSettingsResponse updateMalwareScanSettings( Consumer updateMalwareScanSettingsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return updateMalwareScanSettings(UpdateMalwareScanSettingsRequest.builder() .applyMutation(updateMalwareScanSettingsRequest).build()); } /** *

* Contains information on member accounts to be updated. *

*

* Specifying both EKS Runtime Monitoring (EKS_RUNTIME_MONITORING) and Runtime Monitoring ( * RUNTIME_MONITORING) will cause an error. You can add only one of these two features because Runtime * Monitoring already includes the threat detection for Amazon EKS resources. For more information, see Runtime Monitoring. *

*

* There might be regional differences because some data sources might not be available in all the Amazon Web * Services Regions where GuardDuty is presently supported. For more information, see Regions and endpoints. *

* * @param updateMemberDetectorsRequest * @return Result of the UpdateMemberDetectors operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.UpdateMemberDetectors * @see AWS API Documentation */ default UpdateMemberDetectorsResponse updateMemberDetectors(UpdateMemberDetectorsRequest updateMemberDetectorsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { throw new UnsupportedOperationException(); } /** *

* Contains information on member accounts to be updated. *

*

* Specifying both EKS Runtime Monitoring (EKS_RUNTIME_MONITORING) and Runtime Monitoring ( * RUNTIME_MONITORING) will cause an error. You can add only one of these two features because Runtime * Monitoring already includes the threat detection for Amazon EKS resources. For more information, see Runtime Monitoring. *

*

* There might be regional differences because some data sources might not be available in all the Amazon Web * Services Regions where GuardDuty is presently supported. For more information, see Regions and endpoints. *

*
*

* This is a convenience which creates an instance of the {@link UpdateMemberDetectorsRequest.Builder} avoiding the * need to create one manually via {@link UpdateMemberDetectorsRequest#builder()} *

* * @param updateMemberDetectorsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.guardduty.model.UpdateMemberDetectorsRequest.Builder} to create a * request. * @return Result of the UpdateMemberDetectors operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.UpdateMemberDetectors * @see AWS API Documentation */ default UpdateMemberDetectorsResponse updateMemberDetectors( Consumer updateMemberDetectorsRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return updateMemberDetectors(UpdateMemberDetectorsRequest.builder().applyMutation(updateMemberDetectorsRequest).build()); } /** *

* Configures the delegated administrator account with the provided values. You must provide a value for either * autoEnableOrganizationMembers or autoEnable, but not both. *

*

* Specifying both EKS Runtime Monitoring (EKS_RUNTIME_MONITORING) and Runtime Monitoring ( * RUNTIME_MONITORING) will cause an error. You can add only one of these two features because Runtime * Monitoring already includes the threat detection for Amazon EKS resources. For more information, see Runtime Monitoring. *

*

* There might be regional differences because some data sources might not be available in all the Amazon Web * Services Regions where GuardDuty is presently supported. For more information, see Regions and endpoints. *

* * @param updateOrganizationConfigurationRequest * @return Result of the UpdateOrganizationConfiguration operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.UpdateOrganizationConfiguration * @see AWS API Documentation */ default UpdateOrganizationConfigurationResponse updateOrganizationConfiguration( UpdateOrganizationConfigurationRequest updateOrganizationConfigurationRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { throw new UnsupportedOperationException(); } /** *

* Configures the delegated administrator account with the provided values. You must provide a value for either * autoEnableOrganizationMembers or autoEnable, but not both. *

*

* Specifying both EKS Runtime Monitoring (EKS_RUNTIME_MONITORING) and Runtime Monitoring ( * RUNTIME_MONITORING) will cause an error. You can add only one of these two features because Runtime * Monitoring already includes the threat detection for Amazon EKS resources. For more information, see Runtime Monitoring. *

*

* There might be regional differences because some data sources might not be available in all the Amazon Web * Services Regions where GuardDuty is presently supported. For more information, see Regions and endpoints. *

*
*

* This is a convenience which creates an instance of the {@link UpdateOrganizationConfigurationRequest.Builder} * avoiding the need to create one manually via {@link UpdateOrganizationConfigurationRequest#builder()} *

* * @param updateOrganizationConfigurationRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.guardduty.model.UpdateOrganizationConfigurationRequest.Builder} to * create a request. * @return Result of the UpdateOrganizationConfiguration operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.UpdateOrganizationConfiguration * @see AWS API Documentation */ default UpdateOrganizationConfigurationResponse updateOrganizationConfiguration( Consumer updateOrganizationConfigurationRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return updateOrganizationConfiguration(UpdateOrganizationConfigurationRequest.builder() .applyMutation(updateOrganizationConfigurationRequest).build()); } /** *

* Updates information about the publishing destination specified by the destinationId. *

* * @param updatePublishingDestinationRequest * @return Result of the UpdatePublishingDestination operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.UpdatePublishingDestination * @see AWS API Documentation */ default UpdatePublishingDestinationResponse updatePublishingDestination( UpdatePublishingDestinationRequest updatePublishingDestinationRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { throw new UnsupportedOperationException(); } /** *

* Updates information about the publishing destination specified by the destinationId. *

*
*

* This is a convenience which creates an instance of the {@link UpdatePublishingDestinationRequest.Builder} * avoiding the need to create one manually via {@link UpdatePublishingDestinationRequest#builder()} *

* * @param updatePublishingDestinationRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.guardduty.model.UpdatePublishingDestinationRequest.Builder} to * create a request. * @return Result of the UpdatePublishingDestination operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.UpdatePublishingDestination * @see AWS API Documentation */ default UpdatePublishingDestinationResponse updatePublishingDestination( Consumer updatePublishingDestinationRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return updatePublishingDestination(UpdatePublishingDestinationRequest.builder() .applyMutation(updatePublishingDestinationRequest).build()); } /** *

* Updates the ThreatIntelSet specified by the ThreatIntelSet ID. *

* * @param updateThreatIntelSetRequest * @return Result of the UpdateThreatIntelSet operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.UpdateThreatIntelSet * @see AWS API Documentation */ default UpdateThreatIntelSetResponse updateThreatIntelSet(UpdateThreatIntelSetRequest updateThreatIntelSetRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { throw new UnsupportedOperationException(); } /** *

* Updates the ThreatIntelSet specified by the ThreatIntelSet ID. *

*
*

* This is a convenience which creates an instance of the {@link UpdateThreatIntelSetRequest.Builder} avoiding the * need to create one manually via {@link UpdateThreatIntelSetRequest#builder()} *

* * @param updateThreatIntelSetRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.guardduty.model.UpdateThreatIntelSetRequest.Builder} to create a * request. * @return Result of the UpdateThreatIntelSet operation returned by the service. * @throws BadRequestException * A bad request exception object. * @throws InternalServerErrorException * An internal server error exception object. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws GuardDutyException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample GuardDutyClient.UpdateThreatIntelSet * @see AWS API Documentation */ default UpdateThreatIntelSetResponse updateThreatIntelSet( Consumer updateThreatIntelSetRequest) throws BadRequestException, InternalServerErrorException, AwsServiceException, SdkClientException, GuardDutyException { return updateThreatIntelSet(UpdateThreatIntelSetRequest.builder().applyMutation(updateThreatIntelSetRequest).build()); } /** * Create a {@link GuardDutyClient} with the region loaded from the * {@link software.amazon.awssdk.regions.providers.DefaultAwsRegionProviderChain} and credentials loaded from the * {@link software.amazon.awssdk.auth.credentials.DefaultCredentialsProvider}. */ static GuardDutyClient create() { return builder().build(); } /** * Create a builder that can be used to configure and create a {@link GuardDutyClient}. */ static GuardDutyClientBuilder builder() { return new DefaultGuardDutyClientBuilder(); } static ServiceMetadata serviceMetadata() { return ServiceMetadata.of(SERVICE_METADATA_ID); } @Override default GuardDutyServiceClientConfiguration serviceClientConfiguration() { throw new UnsupportedOperationException(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy