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

The details that identify a resource that is collected by Config aggregator, * including the resource type, ID, (if available) the custom resource name, the * source account, and source region.

See Also:

AWS * API Reference

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

The 12-digit account ID of the source account.

*/ inline const Aws::String& GetSourceAccountId() const{ return m_sourceAccountId; } inline bool SourceAccountIdHasBeenSet() const { return m_sourceAccountIdHasBeenSet; } inline void SetSourceAccountId(const Aws::String& value) { m_sourceAccountIdHasBeenSet = true; m_sourceAccountId = value; } inline void SetSourceAccountId(Aws::String&& value) { m_sourceAccountIdHasBeenSet = true; m_sourceAccountId = std::move(value); } inline void SetSourceAccountId(const char* value) { m_sourceAccountIdHasBeenSet = true; m_sourceAccountId.assign(value); } inline AggregateResourceIdentifier& WithSourceAccountId(const Aws::String& value) { SetSourceAccountId(value); return *this;} inline AggregateResourceIdentifier& WithSourceAccountId(Aws::String&& value) { SetSourceAccountId(std::move(value)); return *this;} inline AggregateResourceIdentifier& WithSourceAccountId(const char* value) { SetSourceAccountId(value); return *this;} ///@} ///@{ /** *

The source region where data is aggregated.

*/ inline const Aws::String& GetSourceRegion() const{ return m_sourceRegion; } inline bool SourceRegionHasBeenSet() const { return m_sourceRegionHasBeenSet; } inline void SetSourceRegion(const Aws::String& value) { m_sourceRegionHasBeenSet = true; m_sourceRegion = value; } inline void SetSourceRegion(Aws::String&& value) { m_sourceRegionHasBeenSet = true; m_sourceRegion = std::move(value); } inline void SetSourceRegion(const char* value) { m_sourceRegionHasBeenSet = true; m_sourceRegion.assign(value); } inline AggregateResourceIdentifier& WithSourceRegion(const Aws::String& value) { SetSourceRegion(value); return *this;} inline AggregateResourceIdentifier& WithSourceRegion(Aws::String&& value) { SetSourceRegion(std::move(value)); return *this;} inline AggregateResourceIdentifier& WithSourceRegion(const char* value) { SetSourceRegion(value); return *this;} ///@} ///@{ /** *

The ID of the Amazon Web Services resource.

*/ inline const Aws::String& GetResourceId() const{ return m_resourceId; } inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; } inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; } inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); } inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); } inline AggregateResourceIdentifier& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;} inline AggregateResourceIdentifier& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;} inline AggregateResourceIdentifier& WithResourceId(const char* value) { SetResourceId(value); return *this;} ///@} ///@{ /** *

The type of the Amazon Web Services resource.

*/ inline const ResourceType& GetResourceType() const{ return m_resourceType; } inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; } inline void SetResourceType(const ResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; } inline void SetResourceType(ResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); } inline AggregateResourceIdentifier& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;} inline AggregateResourceIdentifier& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;} ///@} ///@{ /** *

The name of the Amazon Web Services resource.

*/ inline const Aws::String& GetResourceName() const{ return m_resourceName; } inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; } inline void SetResourceName(const Aws::String& value) { m_resourceNameHasBeenSet = true; m_resourceName = value; } inline void SetResourceName(Aws::String&& value) { m_resourceNameHasBeenSet = true; m_resourceName = std::move(value); } inline void SetResourceName(const char* value) { m_resourceNameHasBeenSet = true; m_resourceName.assign(value); } inline AggregateResourceIdentifier& WithResourceName(const Aws::String& value) { SetResourceName(value); return *this;} inline AggregateResourceIdentifier& WithResourceName(Aws::String&& value) { SetResourceName(std::move(value)); return *this;} inline AggregateResourceIdentifier& WithResourceName(const char* value) { SetResourceName(value); return *this;} ///@} private: Aws::String m_sourceAccountId; bool m_sourceAccountIdHasBeenSet = false; Aws::String m_sourceRegion; bool m_sourceRegionHasBeenSet = false; Aws::String m_resourceId; bool m_resourceIdHasBeenSet = false; ResourceType m_resourceType; bool m_resourceTypeHasBeenSet = false; Aws::String m_resourceName; bool m_resourceNameHasBeenSet = false; }; } // namespace Model } // namespace ConfigService } // namespace Aws