/* * Copyright 2018-2023 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 com.amazonaws.services.guardduty.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Contains information about the API action. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AwsApiCallAction implements Serializable, Cloneable, StructuredPojo { /** ** The Amazon Web Services API name. *
*/ private String api; /** ** The Amazon Web Services API caller type. *
*/ private String callerType; /** ** The domain information for the Amazon Web Services API call. *
*/ private DomainDetails domainDetails; /** ** The error code of the failed Amazon Web Services API action. *
*/ private String errorCode; /** ** The agent through which the API request was made. *
*/ private String userAgent; /** ** The remote IP information of the connection that initiated the Amazon Web Services API call. *
*/ private RemoteIpDetails remoteIpDetails; /** ** The Amazon Web Services service name whose API was invoked. *
*/ private String serviceName; /** ** The details of the Amazon Web Services account that made the API call. This field appears if the call was made * from outside your account. *
*/ private RemoteAccountDetails remoteAccountDetails; /** ** The details of the Amazon Web Services account that made the API call. This field identifies the resources that * were affected by this API call. *
*/ private java.util.Map* The Amazon Web Services API name. *
* * @param api * The Amazon Web Services API name. */ public void setApi(String api) { this.api = api; } /** ** The Amazon Web Services API name. *
* * @return The Amazon Web Services API name. */ public String getApi() { return this.api; } /** ** The Amazon Web Services API name. *
* * @param api * The Amazon Web Services API name. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsApiCallAction withApi(String api) { setApi(api); return this; } /** ** The Amazon Web Services API caller type. *
* * @param callerType * The Amazon Web Services API caller type. */ public void setCallerType(String callerType) { this.callerType = callerType; } /** ** The Amazon Web Services API caller type. *
* * @return The Amazon Web Services API caller type. */ public String getCallerType() { return this.callerType; } /** ** The Amazon Web Services API caller type. *
* * @param callerType * The Amazon Web Services API caller type. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsApiCallAction withCallerType(String callerType) { setCallerType(callerType); return this; } /** ** The domain information for the Amazon Web Services API call. *
* * @param domainDetails * The domain information for the Amazon Web Services API call. */ public void setDomainDetails(DomainDetails domainDetails) { this.domainDetails = domainDetails; } /** ** The domain information for the Amazon Web Services API call. *
* * @return The domain information for the Amazon Web Services API call. */ public DomainDetails getDomainDetails() { return this.domainDetails; } /** ** The domain information for the Amazon Web Services API call. *
* * @param domainDetails * The domain information for the Amazon Web Services API call. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsApiCallAction withDomainDetails(DomainDetails domainDetails) { setDomainDetails(domainDetails); return this; } /** ** The error code of the failed Amazon Web Services API action. *
* * @param errorCode * The error code of the failed Amazon Web Services API action. */ public void setErrorCode(String errorCode) { this.errorCode = errorCode; } /** ** The error code of the failed Amazon Web Services API action. *
* * @return The error code of the failed Amazon Web Services API action. */ public String getErrorCode() { return this.errorCode; } /** ** The error code of the failed Amazon Web Services API action. *
* * @param errorCode * The error code of the failed Amazon Web Services API action. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsApiCallAction withErrorCode(String errorCode) { setErrorCode(errorCode); return this; } /** ** The agent through which the API request was made. *
* * @param userAgent * The agent through which the API request was made. */ public void setUserAgent(String userAgent) { this.userAgent = userAgent; } /** ** The agent through which the API request was made. *
* * @return The agent through which the API request was made. */ public String getUserAgent() { return this.userAgent; } /** ** The agent through which the API request was made. *
* * @param userAgent * The agent through which the API request was made. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsApiCallAction withUserAgent(String userAgent) { setUserAgent(userAgent); return this; } /** ** The remote IP information of the connection that initiated the Amazon Web Services API call. *
* * @param remoteIpDetails * The remote IP information of the connection that initiated the Amazon Web Services API call. */ public void setRemoteIpDetails(RemoteIpDetails remoteIpDetails) { this.remoteIpDetails = remoteIpDetails; } /** ** The remote IP information of the connection that initiated the Amazon Web Services API call. *
* * @return The remote IP information of the connection that initiated the Amazon Web Services API call. */ public RemoteIpDetails getRemoteIpDetails() { return this.remoteIpDetails; } /** ** The remote IP information of the connection that initiated the Amazon Web Services API call. *
* * @param remoteIpDetails * The remote IP information of the connection that initiated the Amazon Web Services API call. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsApiCallAction withRemoteIpDetails(RemoteIpDetails remoteIpDetails) { setRemoteIpDetails(remoteIpDetails); return this; } /** ** The Amazon Web Services service name whose API was invoked. *
* * @param serviceName * The Amazon Web Services service name whose API was invoked. */ public void setServiceName(String serviceName) { this.serviceName = serviceName; } /** ** The Amazon Web Services service name whose API was invoked. *
* * @return The Amazon Web Services service name whose API was invoked. */ public String getServiceName() { return this.serviceName; } /** ** The Amazon Web Services service name whose API was invoked. *
* * @param serviceName * The Amazon Web Services service name whose API was invoked. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsApiCallAction withServiceName(String serviceName) { setServiceName(serviceName); return this; } /** ** The details of the Amazon Web Services account that made the API call. This field appears if the call was made * from outside your account. *
* * @param remoteAccountDetails * The details of the Amazon Web Services account that made the API call. This field appears if the call was * made from outside your account. */ public void setRemoteAccountDetails(RemoteAccountDetails remoteAccountDetails) { this.remoteAccountDetails = remoteAccountDetails; } /** ** The details of the Amazon Web Services account that made the API call. This field appears if the call was made * from outside your account. *
* * @return The details of the Amazon Web Services account that made the API call. This field appears if the call was * made from outside your account. */ public RemoteAccountDetails getRemoteAccountDetails() { return this.remoteAccountDetails; } /** ** The details of the Amazon Web Services account that made the API call. This field appears if the call was made * from outside your account. *
* * @param remoteAccountDetails * The details of the Amazon Web Services account that made the API call. This field appears if the call was * made from outside your account. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsApiCallAction withRemoteAccountDetails(RemoteAccountDetails remoteAccountDetails) { setRemoteAccountDetails(remoteAccountDetails); return this; } /** ** The details of the Amazon Web Services account that made the API call. This field identifies the resources that * were affected by this API call. *
* * @return The details of the Amazon Web Services account that made the API call. This field identifies the * resources that were affected by this API call. */ public java.util.Map* The details of the Amazon Web Services account that made the API call. This field identifies the resources that * were affected by this API call. *
* * @param affectedResources * The details of the Amazon Web Services account that made the API call. This field identifies the resources * that were affected by this API call. */ public void setAffectedResources(java.util.Map* The details of the Amazon Web Services account that made the API call. This field identifies the resources that * were affected by this API call. *
* * @param affectedResources * The details of the Amazon Web Services account that made the API call. This field identifies the resources * that were affected by this API call. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsApiCallAction withAffectedResources(java.util.Map