/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace GuardDuty { namespace Model { /** *

Details about the EKS cluster involved in a Kubernetes finding.

See * Also:

AWS * API Reference

*/ class EksClusterDetails { public: AWS_GUARDDUTY_API EksClusterDetails(); AWS_GUARDDUTY_API EksClusterDetails(Aws::Utils::Json::JsonView jsonValue); AWS_GUARDDUTY_API EksClusterDetails& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

EKS cluster name.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

EKS cluster name.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

EKS cluster name.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

EKS cluster name.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

EKS cluster name.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

EKS cluster name.

*/ inline EksClusterDetails& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

EKS cluster name.

*/ inline EksClusterDetails& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

EKS cluster name.

*/ inline EksClusterDetails& WithName(const char* value) { SetName(value); return *this;} /** *

EKS cluster ARN.

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

EKS cluster ARN.

*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *

EKS cluster ARN.

*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *

EKS cluster ARN.

*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *

EKS cluster ARN.

*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *

EKS cluster ARN.

*/ inline EksClusterDetails& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

EKS cluster ARN.

*/ inline EksClusterDetails& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

EKS cluster ARN.

*/ inline EksClusterDetails& WithArn(const char* value) { SetArn(value); return *this;} /** *

The VPC ID to which the EKS cluster is attached.

*/ inline const Aws::String& GetVpcId() const{ return m_vpcId; } /** *

The VPC ID to which the EKS cluster is attached.

*/ inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; } /** *

The VPC ID to which the EKS cluster is attached.

*/ inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; } /** *

The VPC ID to which the EKS cluster is attached.

*/ inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); } /** *

The VPC ID to which the EKS cluster is attached.

*/ inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); } /** *

The VPC ID to which the EKS cluster is attached.

*/ inline EksClusterDetails& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;} /** *

The VPC ID to which the EKS cluster is attached.

*/ inline EksClusterDetails& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;} /** *

The VPC ID to which the EKS cluster is attached.

*/ inline EksClusterDetails& WithVpcId(const char* value) { SetVpcId(value); return *this;} /** *

The EKS cluster status.

*/ inline const Aws::String& GetStatus() const{ return m_status; } /** *

The EKS cluster status.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The EKS cluster status.

*/ inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The EKS cluster status.

*/ inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The EKS cluster status.

*/ inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); } /** *

The EKS cluster status.

*/ inline EksClusterDetails& WithStatus(const Aws::String& value) { SetStatus(value); return *this;} /** *

The EKS cluster status.

*/ inline EksClusterDetails& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;} /** *

The EKS cluster status.

*/ inline EksClusterDetails& WithStatus(const char* value) { SetStatus(value); return *this;} /** *

The EKS cluster tags.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

The EKS cluster tags.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

The EKS cluster tags.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

The EKS cluster tags.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

The EKS cluster tags.

*/ inline EksClusterDetails& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

The EKS cluster tags.

*/ inline EksClusterDetails& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

The EKS cluster tags.

*/ inline EksClusterDetails& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

The EKS cluster tags.

*/ inline EksClusterDetails& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } /** *

The timestamp when the EKS cluster was created.

*/ inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } /** *

The timestamp when the EKS cluster was created.

*/ inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; } /** *

The timestamp when the EKS cluster was created.

*/ inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; } /** *

The timestamp when the EKS cluster was created.

*/ inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); } /** *

The timestamp when the EKS cluster was created.

*/ inline EksClusterDetails& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} /** *

The timestamp when the EKS cluster was created.

*/ inline EksClusterDetails& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::String m_vpcId; bool m_vpcIdHasBeenSet = false; Aws::String m_status; bool m_statusHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; Aws::Utils::DateTime m_createdAt; bool m_createdAtHasBeenSet = false; }; } // namespace Model } // namespace GuardDuty } // namespace Aws