/*
* 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.
*/
/*
* Do not modify this file. This file is generated from the guardduty-2017-11-28.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.GuardDuty.Model
{
///
/// Contains information about the API action.
///
public partial class AwsApiCallAction
{
private Dictionary _affectedResources = new Dictionary();
private string _api;
private string _callerType;
private DomainDetails _domainDetails;
private string _errorCode;
private RemoteAccountDetails _remoteAccountDetails;
private RemoteIpDetails _remoteIpDetails;
private string _serviceName;
private string _userAgent;
///
/// Gets and sets the property 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 Dictionary AffectedResources
{
get { return this._affectedResources; }
set { this._affectedResources = value; }
}
// Check to see if AffectedResources property is set
internal bool IsSetAffectedResources()
{
return this._affectedResources != null && this._affectedResources.Count > 0;
}
///
/// Gets and sets the property Api.
///
/// The Amazon Web Services API name.
///
///
public string Api
{
get { return this._api; }
set { this._api = value; }
}
// Check to see if Api property is set
internal bool IsSetApi()
{
return this._api != null;
}
///
/// Gets and sets the property CallerType.
///
/// The Amazon Web Services API caller type.
///
///
public string CallerType
{
get { return this._callerType; }
set { this._callerType = value; }
}
// Check to see if CallerType property is set
internal bool IsSetCallerType()
{
return this._callerType != null;
}
///
/// Gets and sets the property DomainDetails.
///
/// The domain information for the Amazon Web Services API call.
///
///
public DomainDetails DomainDetails
{
get { return this._domainDetails; }
set { this._domainDetails = value; }
}
// Check to see if DomainDetails property is set
internal bool IsSetDomainDetails()
{
return this._domainDetails != null;
}
///
/// Gets and sets the property ErrorCode.
///
/// The error code of the failed Amazon Web Services API action.
///
///
public string ErrorCode
{
get { return this._errorCode; }
set { this._errorCode = value; }
}
// Check to see if ErrorCode property is set
internal bool IsSetErrorCode()
{
return this._errorCode != null;
}
///
/// Gets and sets the property 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 RemoteAccountDetails RemoteAccountDetails
{
get { return this._remoteAccountDetails; }
set { this._remoteAccountDetails = value; }
}
// Check to see if RemoteAccountDetails property is set
internal bool IsSetRemoteAccountDetails()
{
return this._remoteAccountDetails != null;
}
///
/// Gets and sets the property RemoteIpDetails.
///
/// The remote IP information of the connection that initiated the Amazon Web Services
/// API call.
///
///
public RemoteIpDetails RemoteIpDetails
{
get { return this._remoteIpDetails; }
set { this._remoteIpDetails = value; }
}
// Check to see if RemoteIpDetails property is set
internal bool IsSetRemoteIpDetails()
{
return this._remoteIpDetails != null;
}
///
/// Gets and sets the property ServiceName.
///
/// The Amazon Web Services service name whose API was invoked.
///
///
public string ServiceName
{
get { return this._serviceName; }
set { this._serviceName = value; }
}
// Check to see if ServiceName property is set
internal bool IsSetServiceName()
{
return this._serviceName != null;
}
///
/// Gets and sets the property UserAgent.
///
/// The agent through which the API request was made.
///
///
public string UserAgent
{
get { return this._userAgent; }
set { this._userAgent = value; }
}
// Check to see if UserAgent property is set
internal bool IsSetUserAgent()
{
return this._userAgent != null;
}
}
}