/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Details of the resource that is not protected by the policy.See
* Also:
AWS
* API Reference
The resource ID.
*/ inline const Aws::String& GetResourceId() const{ return m_resourceId; } /** *The resource ID.
*/ inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; } /** *The resource ID.
*/ inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; } /** *The resource ID.
*/ inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); } /** *The resource ID.
*/ inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); } /** *The resource ID.
*/ inline ComplianceViolator& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;} /** *The resource ID.
*/ inline ComplianceViolator& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;} /** *The resource ID.
*/ inline ComplianceViolator& WithResourceId(const char* value) { SetResourceId(value); return *this;} /** *The reason that the resource is not protected by the policy.
*/ inline const ViolationReason& GetViolationReason() const{ return m_violationReason; } /** *The reason that the resource is not protected by the policy.
*/ inline bool ViolationReasonHasBeenSet() const { return m_violationReasonHasBeenSet; } /** *The reason that the resource is not protected by the policy.
*/ inline void SetViolationReason(const ViolationReason& value) { m_violationReasonHasBeenSet = true; m_violationReason = value; } /** *The reason that the resource is not protected by the policy.
*/ inline void SetViolationReason(ViolationReason&& value) { m_violationReasonHasBeenSet = true; m_violationReason = std::move(value); } /** *The reason that the resource is not protected by the policy.
*/ inline ComplianceViolator& WithViolationReason(const ViolationReason& value) { SetViolationReason(value); return *this;} /** *The reason that the resource is not protected by the policy.
*/ inline ComplianceViolator& WithViolationReason(ViolationReason&& value) { SetViolationReason(std::move(value)); return *this;} /** *The resource type. This is in the format shown in the Amazon
* Web Services Resource Types Reference. For example:
* AWS::ElasticLoadBalancingV2::LoadBalancer
,
* AWS::CloudFront::Distribution
, or
* AWS::NetworkFirewall::FirewallPolicy
.
The resource type. This is in the format shown in the Amazon
* Web Services Resource Types Reference. For example:
* AWS::ElasticLoadBalancingV2::LoadBalancer
,
* AWS::CloudFront::Distribution
, or
* AWS::NetworkFirewall::FirewallPolicy
.
The resource type. This is in the format shown in the Amazon
* Web Services Resource Types Reference. For example:
* AWS::ElasticLoadBalancingV2::LoadBalancer
,
* AWS::CloudFront::Distribution
, or
* AWS::NetworkFirewall::FirewallPolicy
.
The resource type. This is in the format shown in the Amazon
* Web Services Resource Types Reference. For example:
* AWS::ElasticLoadBalancingV2::LoadBalancer
,
* AWS::CloudFront::Distribution
, or
* AWS::NetworkFirewall::FirewallPolicy
.
The resource type. This is in the format shown in the Amazon
* Web Services Resource Types Reference. For example:
* AWS::ElasticLoadBalancingV2::LoadBalancer
,
* AWS::CloudFront::Distribution
, or
* AWS::NetworkFirewall::FirewallPolicy
.
The resource type. This is in the format shown in the Amazon
* Web Services Resource Types Reference. For example:
* AWS::ElasticLoadBalancingV2::LoadBalancer
,
* AWS::CloudFront::Distribution
, or
* AWS::NetworkFirewall::FirewallPolicy
.
The resource type. This is in the format shown in the Amazon
* Web Services Resource Types Reference. For example:
* AWS::ElasticLoadBalancingV2::LoadBalancer
,
* AWS::CloudFront::Distribution
, or
* AWS::NetworkFirewall::FirewallPolicy
.
The resource type. This is in the format shown in the Amazon
* Web Services Resource Types Reference. For example:
* AWS::ElasticLoadBalancingV2::LoadBalancer
,
* AWS::CloudFront::Distribution
, or
* AWS::NetworkFirewall::FirewallPolicy
.
Metadata about the resource that doesn't comply with the policy scope.
*/ inline const Aws::MapMetadata about the resource that doesn't comply with the policy scope.
*/ inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; } /** *Metadata about the resource that doesn't comply with the policy scope.
*/ inline void SetMetadata(const Aws::MapMetadata about the resource that doesn't comply with the policy scope.
*/ inline void SetMetadata(Aws::MapMetadata about the resource that doesn't comply with the policy scope.
*/ inline ComplianceViolator& WithMetadata(const Aws::MapMetadata about the resource that doesn't comply with the policy scope.
*/ inline ComplianceViolator& WithMetadata(Aws::MapMetadata about the resource that doesn't comply with the policy scope.
*/ inline ComplianceViolator& AddMetadata(const Aws::String& key, const Aws::String& value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, value); return *this; } /** *Metadata about the resource that doesn't comply with the policy scope.
*/ inline ComplianceViolator& AddMetadata(Aws::String&& key, const Aws::String& value) { m_metadataHasBeenSet = true; m_metadata.emplace(std::move(key), value); return *this; } /** *Metadata about the resource that doesn't comply with the policy scope.
*/ inline ComplianceViolator& AddMetadata(const Aws::String& key, Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, std::move(value)); return *this; } /** *Metadata about the resource that doesn't comply with the policy scope.
*/ inline ComplianceViolator& AddMetadata(Aws::String&& key, Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata.emplace(std::move(key), std::move(value)); return *this; } /** *Metadata about the resource that doesn't comply with the policy scope.
*/ inline ComplianceViolator& AddMetadata(const char* key, Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, std::move(value)); return *this; } /** *Metadata about the resource that doesn't comply with the policy scope.
*/ inline ComplianceViolator& AddMetadata(Aws::String&& key, const char* value) { m_metadataHasBeenSet = true; m_metadata.emplace(std::move(key), value); return *this; } /** *Metadata about the resource that doesn't comply with the policy scope.
*/ inline ComplianceViolator& AddMetadata(const char* key, const char* value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, value); return *this; } private: Aws::String m_resourceId; bool m_resourceIdHasBeenSet = false; ViolationReason m_violationReason; bool m_violationReasonHasBeenSet = false; Aws::String m_resourceType; bool m_resourceTypeHasBeenSet = false; Aws::Map