/*
* 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
{
///
/// Information about the Kubernetes API call action described in this finding.
///
public partial class KubernetesApiCallAction
{
private string _parameters;
private RemoteIpDetails _remoteIpDetails;
private string _requestUri;
private List _sourceIps = new List();
private int? _statusCode;
private string _userAgent;
private string _verb;
///
/// Gets and sets the property Parameters.
///
/// Parameters related to the Kubernetes API call action.
///
///
public string Parameters
{
get { return this._parameters; }
set { this._parameters = value; }
}
// Check to see if Parameters property is set
internal bool IsSetParameters()
{
return this._parameters != null;
}
///
/// Gets and sets the property RemoteIpDetails.
///
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 RequestUri.
///
/// The Kubernetes API request URI.
///
///
public string RequestUri
{
get { return this._requestUri; }
set { this._requestUri = value; }
}
// Check to see if RequestUri property is set
internal bool IsSetRequestUri()
{
return this._requestUri != null;
}
///
/// Gets and sets the property SourceIps.
///
/// The IP of the Kubernetes API caller and the IPs of any proxies or load balancers between
/// the caller and the API endpoint.
///
///
public List SourceIps
{
get { return this._sourceIps; }
set { this._sourceIps = value; }
}
// Check to see if SourceIps property is set
internal bool IsSetSourceIps()
{
return this._sourceIps != null && this._sourceIps.Count > 0;
}
///
/// Gets and sets the property StatusCode.
///
/// The resulting HTTP response code of the Kubernetes API call action.
///
///
public int StatusCode
{
get { return this._statusCode.GetValueOrDefault(); }
set { this._statusCode = value; }
}
// Check to see if StatusCode property is set
internal bool IsSetStatusCode()
{
return this._statusCode.HasValue;
}
///
/// Gets and sets the property UserAgent.
///
/// The user agent of the caller of the Kubernetes API.
///
///
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;
}
///
/// Gets and sets the property Verb.
///
/// The Kubernetes API request HTTP verb.
///
///
public string Verb
{
get { return this._verb; }
set { this._verb = value; }
}
// Check to see if Verb property is set
internal bool IsSetVerb()
{
return this._verb != null;
}
}
}