/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Contains details about the analyzed resource.See Also:
AWS
* API Reference
The ARN of the resource that was analyzed.
*/ inline const Aws::String& GetResourceArn() const{ return m_resourceArn; } /** *The ARN of the resource that was analyzed.
*/ inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; } /** *The ARN of the resource that was analyzed.
*/ inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; } /** *The ARN of the resource that was analyzed.
*/ inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); } /** *The ARN of the resource that was analyzed.
*/ inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); } /** *The ARN of the resource that was analyzed.
*/ inline AnalyzedResource& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;} /** *The ARN of the resource that was analyzed.
*/ inline AnalyzedResource& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;} /** *The ARN of the resource that was analyzed.
*/ inline AnalyzedResource& WithResourceArn(const char* value) { SetResourceArn(value); return *this;} /** *The type of the resource that was analyzed.
*/ inline const ResourceType& GetResourceType() const{ return m_resourceType; } /** *The type of the resource that was analyzed.
*/ inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; } /** *The type of the resource that was analyzed.
*/ inline void SetResourceType(const ResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; } /** *The type of the resource that was analyzed.
*/ inline void SetResourceType(ResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); } /** *The type of the resource that was analyzed.
*/ inline AnalyzedResource& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;} /** *The type of the resource that was analyzed.
*/ inline AnalyzedResource& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;} /** *The time at which the finding was created.
*/ inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } /** *The time at which the finding was created.
*/ inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; } /** *The time at which the finding was created.
*/ inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; } /** *The time at which the finding was created.
*/ inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); } /** *The time at which the finding was created.
*/ inline AnalyzedResource& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} /** *The time at which the finding was created.
*/ inline AnalyzedResource& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} /** *The time at which the resource was analyzed.
*/ inline const Aws::Utils::DateTime& GetAnalyzedAt() const{ return m_analyzedAt; } /** *The time at which the resource was analyzed.
*/ inline bool AnalyzedAtHasBeenSet() const { return m_analyzedAtHasBeenSet; } /** *The time at which the resource was analyzed.
*/ inline void SetAnalyzedAt(const Aws::Utils::DateTime& value) { m_analyzedAtHasBeenSet = true; m_analyzedAt = value; } /** *The time at which the resource was analyzed.
*/ inline void SetAnalyzedAt(Aws::Utils::DateTime&& value) { m_analyzedAtHasBeenSet = true; m_analyzedAt = std::move(value); } /** *The time at which the resource was analyzed.
*/ inline AnalyzedResource& WithAnalyzedAt(const Aws::Utils::DateTime& value) { SetAnalyzedAt(value); return *this;} /** *The time at which the resource was analyzed.
*/ inline AnalyzedResource& WithAnalyzedAt(Aws::Utils::DateTime&& value) { SetAnalyzedAt(std::move(value)); return *this;} /** *The time at which the finding was updated.
*/ inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; } /** *The time at which the finding was updated.
*/ inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; } /** *The time at which the finding was updated.
*/ inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAtHasBeenSet = true; m_updatedAt = value; } /** *The time at which the finding was updated.
*/ inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::move(value); } /** *The time at which the finding was updated.
*/ inline AnalyzedResource& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;} /** *The time at which the finding was updated.
*/ inline AnalyzedResource& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;} /** *Indicates whether the policy that generated the finding grants public access * to the resource.
*/ inline bool GetIsPublic() const{ return m_isPublic; } /** *Indicates whether the policy that generated the finding grants public access * to the resource.
*/ inline bool IsPublicHasBeenSet() const { return m_isPublicHasBeenSet; } /** *Indicates whether the policy that generated the finding grants public access * to the resource.
*/ inline void SetIsPublic(bool value) { m_isPublicHasBeenSet = true; m_isPublic = value; } /** *Indicates whether the policy that generated the finding grants public access * to the resource.
*/ inline AnalyzedResource& WithIsPublic(bool value) { SetIsPublic(value); return *this;} /** *The actions that an external principal is granted permission to use by the * policy that generated the finding.
*/ inline const Aws::VectorThe actions that an external principal is granted permission to use by the * policy that generated the finding.
*/ inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; } /** *The actions that an external principal is granted permission to use by the * policy that generated the finding.
*/ inline void SetActions(const Aws::VectorThe actions that an external principal is granted permission to use by the * policy that generated the finding.
*/ inline void SetActions(Aws::VectorThe actions that an external principal is granted permission to use by the * policy that generated the finding.
*/ inline AnalyzedResource& WithActions(const Aws::VectorThe actions that an external principal is granted permission to use by the * policy that generated the finding.
*/ inline AnalyzedResource& WithActions(Aws::VectorThe actions that an external principal is granted permission to use by the * policy that generated the finding.
*/ inline AnalyzedResource& AddActions(const Aws::String& value) { m_actionsHasBeenSet = true; m_actions.push_back(value); return *this; } /** *The actions that an external principal is granted permission to use by the * policy that generated the finding.
*/ inline AnalyzedResource& AddActions(Aws::String&& value) { m_actionsHasBeenSet = true; m_actions.push_back(std::move(value)); return *this; } /** *The actions that an external principal is granted permission to use by the * policy that generated the finding.
*/ inline AnalyzedResource& AddActions(const char* value) { m_actionsHasBeenSet = true; m_actions.push_back(value); return *this; } /** *Indicates how the access that generated the finding is granted. This is * populated for Amazon S3 bucket findings.
*/ inline const Aws::VectorIndicates how the access that generated the finding is granted. This is * populated for Amazon S3 bucket findings.
*/ inline bool SharedViaHasBeenSet() const { return m_sharedViaHasBeenSet; } /** *Indicates how the access that generated the finding is granted. This is * populated for Amazon S3 bucket findings.
*/ inline void SetSharedVia(const Aws::VectorIndicates how the access that generated the finding is granted. This is * populated for Amazon S3 bucket findings.
*/ inline void SetSharedVia(Aws::VectorIndicates how the access that generated the finding is granted. This is * populated for Amazon S3 bucket findings.
*/ inline AnalyzedResource& WithSharedVia(const Aws::VectorIndicates how the access that generated the finding is granted. This is * populated for Amazon S3 bucket findings.
*/ inline AnalyzedResource& WithSharedVia(Aws::VectorIndicates how the access that generated the finding is granted. This is * populated for Amazon S3 bucket findings.
*/ inline AnalyzedResource& AddSharedVia(const Aws::String& value) { m_sharedViaHasBeenSet = true; m_sharedVia.push_back(value); return *this; } /** *Indicates how the access that generated the finding is granted. This is * populated for Amazon S3 bucket findings.
*/ inline AnalyzedResource& AddSharedVia(Aws::String&& value) { m_sharedViaHasBeenSet = true; m_sharedVia.push_back(std::move(value)); return *this; } /** *Indicates how the access that generated the finding is granted. This is * populated for Amazon S3 bucket findings.
*/ inline AnalyzedResource& AddSharedVia(const char* value) { m_sharedViaHasBeenSet = true; m_sharedVia.push_back(value); return *this; } /** *The current status of the finding generated from the analyzed resource.
*/ inline const FindingStatus& GetStatus() const{ return m_status; } /** *The current status of the finding generated from the analyzed resource.
*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *The current status of the finding generated from the analyzed resource.
*/ inline void SetStatus(const FindingStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *The current status of the finding generated from the analyzed resource.
*/ inline void SetStatus(FindingStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *The current status of the finding generated from the analyzed resource.
*/ inline AnalyzedResource& WithStatus(const FindingStatus& value) { SetStatus(value); return *this;} /** *The current status of the finding generated from the analyzed resource.
*/ inline AnalyzedResource& WithStatus(FindingStatus&& value) { SetStatus(std::move(value)); return *this;} /** *The Amazon Web Services account ID that owns the resource.
*/ inline const Aws::String& GetResourceOwnerAccount() const{ return m_resourceOwnerAccount; } /** *The Amazon Web Services account ID that owns the resource.
*/ inline bool ResourceOwnerAccountHasBeenSet() const { return m_resourceOwnerAccountHasBeenSet; } /** *The Amazon Web Services account ID that owns the resource.
*/ inline void SetResourceOwnerAccount(const Aws::String& value) { m_resourceOwnerAccountHasBeenSet = true; m_resourceOwnerAccount = value; } /** *The Amazon Web Services account ID that owns the resource.
*/ inline void SetResourceOwnerAccount(Aws::String&& value) { m_resourceOwnerAccountHasBeenSet = true; m_resourceOwnerAccount = std::move(value); } /** *The Amazon Web Services account ID that owns the resource.
*/ inline void SetResourceOwnerAccount(const char* value) { m_resourceOwnerAccountHasBeenSet = true; m_resourceOwnerAccount.assign(value); } /** *The Amazon Web Services account ID that owns the resource.
*/ inline AnalyzedResource& WithResourceOwnerAccount(const Aws::String& value) { SetResourceOwnerAccount(value); return *this;} /** *The Amazon Web Services account ID that owns the resource.
*/ inline AnalyzedResource& WithResourceOwnerAccount(Aws::String&& value) { SetResourceOwnerAccount(std::move(value)); return *this;} /** *The Amazon Web Services account ID that owns the resource.
*/ inline AnalyzedResource& WithResourceOwnerAccount(const char* value) { SetResourceOwnerAccount(value); return *this;} /** *An error message.
*/ inline const Aws::String& GetError() const{ return m_error; } /** *An error message.
*/ inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; } /** *An error message.
*/ inline void SetError(const Aws::String& value) { m_errorHasBeenSet = true; m_error = value; } /** *An error message.
*/ inline void SetError(Aws::String&& value) { m_errorHasBeenSet = true; m_error = std::move(value); } /** *An error message.
*/ inline void SetError(const char* value) { m_errorHasBeenSet = true; m_error.assign(value); } /** *An error message.
*/ inline AnalyzedResource& WithError(const Aws::String& value) { SetError(value); return *this;} /** *An error message.
*/ inline AnalyzedResource& WithError(Aws::String&& value) { SetError(std::move(value)); return *this;} /** *An error message.
*/ inline AnalyzedResource& WithError(const char* value) { SetError(value); return *this;} private: Aws::String m_resourceArn; bool m_resourceArnHasBeenSet = false; ResourceType m_resourceType; bool m_resourceTypeHasBeenSet = false; Aws::Utils::DateTime m_createdAt; bool m_createdAtHasBeenSet = false; Aws::Utils::DateTime m_analyzedAt; bool m_analyzedAtHasBeenSet = false; Aws::Utils::DateTime m_updatedAt; bool m_updatedAtHasBeenSet = false; bool m_isPublic; bool m_isPublicHasBeenSet = false; Aws::Vector