/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Contains information about the AWS resource associated with the activity that
* prompted GuardDuty to generate a finding.See Also:
AWS
* API Reference
The IAM access key details (IAM user information) of a user that engaged in * the activity that prompted GuardDuty to generate a finding.
*/ inline const AccessKeyDetails& GetAccessKeyDetails() const{ return m_accessKeyDetails; } /** *The IAM access key details (IAM user information) of a user that engaged in * the activity that prompted GuardDuty to generate a finding.
*/ inline bool AccessKeyDetailsHasBeenSet() const { return m_accessKeyDetailsHasBeenSet; } /** *The IAM access key details (IAM user information) of a user that engaged in * the activity that prompted GuardDuty to generate a finding.
*/ inline void SetAccessKeyDetails(const AccessKeyDetails& value) { m_accessKeyDetailsHasBeenSet = true; m_accessKeyDetails = value; } /** *The IAM access key details (IAM user information) of a user that engaged in * the activity that prompted GuardDuty to generate a finding.
*/ inline void SetAccessKeyDetails(AccessKeyDetails&& value) { m_accessKeyDetailsHasBeenSet = true; m_accessKeyDetails = std::move(value); } /** *The IAM access key details (IAM user information) of a user that engaged in * the activity that prompted GuardDuty to generate a finding.
*/ inline Resource& WithAccessKeyDetails(const AccessKeyDetails& value) { SetAccessKeyDetails(value); return *this;} /** *The IAM access key details (IAM user information) of a user that engaged in * the activity that prompted GuardDuty to generate a finding.
*/ inline Resource& WithAccessKeyDetails(AccessKeyDetails&& value) { SetAccessKeyDetails(std::move(value)); return *this;} /** *Contains information on the S3 bucket.
*/ inline const Aws::VectorContains information on the S3 bucket.
*/ inline bool S3BucketDetailsHasBeenSet() const { return m_s3BucketDetailsHasBeenSet; } /** *Contains information on the S3 bucket.
*/ inline void SetS3BucketDetails(const Aws::VectorContains information on the S3 bucket.
*/ inline void SetS3BucketDetails(Aws::VectorContains information on the S3 bucket.
*/ inline Resource& WithS3BucketDetails(const Aws::VectorContains information on the S3 bucket.
*/ inline Resource& WithS3BucketDetails(Aws::VectorContains information on the S3 bucket.
*/ inline Resource& AddS3BucketDetails(const S3BucketDetail& value) { m_s3BucketDetailsHasBeenSet = true; m_s3BucketDetails.push_back(value); return *this; } /** *Contains information on the S3 bucket.
*/ inline Resource& AddS3BucketDetails(S3BucketDetail&& value) { m_s3BucketDetailsHasBeenSet = true; m_s3BucketDetails.push_back(std::move(value)); return *this; } /** *The information about the EC2 instance associated with the activity that * prompted GuardDuty to generate a finding.
*/ inline const InstanceDetails& GetInstanceDetails() const{ return m_instanceDetails; } /** *The information about the EC2 instance associated with the activity that * prompted GuardDuty to generate a finding.
*/ inline bool InstanceDetailsHasBeenSet() const { return m_instanceDetailsHasBeenSet; } /** *The information about the EC2 instance associated with the activity that * prompted GuardDuty to generate a finding.
*/ inline void SetInstanceDetails(const InstanceDetails& value) { m_instanceDetailsHasBeenSet = true; m_instanceDetails = value; } /** *The information about the EC2 instance associated with the activity that * prompted GuardDuty to generate a finding.
*/ inline void SetInstanceDetails(InstanceDetails&& value) { m_instanceDetailsHasBeenSet = true; m_instanceDetails = std::move(value); } /** *The information about the EC2 instance associated with the activity that * prompted GuardDuty to generate a finding.
*/ inline Resource& WithInstanceDetails(const InstanceDetails& value) { SetInstanceDetails(value); return *this;} /** *The information about the EC2 instance associated with the activity that * prompted GuardDuty to generate a finding.
*/ inline Resource& WithInstanceDetails(InstanceDetails&& value) { SetInstanceDetails(std::move(value)); return *this;} /** *The type of AWS resource.
*/ inline const Aws::String& GetResourceType() const{ return m_resourceType; } /** *The type of AWS resource.
*/ inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; } /** *The type of AWS resource.
*/ inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; } /** *The type of AWS resource.
*/ inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); } /** *The type of AWS resource.
*/ inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); } /** *The type of AWS resource.
*/ inline Resource& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;} /** *The type of AWS resource.
*/ inline Resource& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;} /** *The type of AWS resource.
*/ inline Resource& WithResourceType(const char* value) { SetResourceType(value); return *this;} private: AccessKeyDetails m_accessKeyDetails; bool m_accessKeyDetailsHasBeenSet; Aws::Vector