/** * 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 relationship of the related resource to the main resource.

See * Also:

AWS * API Reference

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

The resource type of the related resource.

*/ inline const ResourceType& GetResourceType() const{ return m_resourceType; } /** *

The resource type of the related resource.

*/ inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; } /** *

The resource type of the related resource.

*/ inline void SetResourceType(const ResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; } /** *

The resource type of the related resource.

*/ inline void SetResourceType(ResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); } /** *

The resource type of the related resource.

*/ inline Relationship& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;} /** *

The resource type of the related resource.

*/ inline Relationship& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;} /** *

The ID of the related resource (for example, sg-xxxxxx).

*/ inline const Aws::String& GetResourceId() const{ return m_resourceId; } /** *

The ID of the related resource (for example, sg-xxxxxx).

*/ inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; } /** *

The ID of the related resource (for example, sg-xxxxxx).

*/ inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; } /** *

The ID of the related resource (for example, sg-xxxxxx).

*/ inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); } /** *

The ID of the related resource (for example, sg-xxxxxx).

*/ inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); } /** *

The ID of the related resource (for example, sg-xxxxxx).

*/ inline Relationship& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;} /** *

The ID of the related resource (for example, sg-xxxxxx).

*/ inline Relationship& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;} /** *

The ID of the related resource (for example, sg-xxxxxx).

*/ inline Relationship& WithResourceId(const char* value) { SetResourceId(value); return *this;} /** *

The custom name of the related resource, if available.

*/ inline const Aws::String& GetResourceName() const{ return m_resourceName; } /** *

The custom name of the related resource, if available.

*/ inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; } /** *

The custom name of the related resource, if available.

*/ inline void SetResourceName(const Aws::String& value) { m_resourceNameHasBeenSet = true; m_resourceName = value; } /** *

The custom name of the related resource, if available.

*/ inline void SetResourceName(Aws::String&& value) { m_resourceNameHasBeenSet = true; m_resourceName = std::move(value); } /** *

The custom name of the related resource, if available.

*/ inline void SetResourceName(const char* value) { m_resourceNameHasBeenSet = true; m_resourceName.assign(value); } /** *

The custom name of the related resource, if available.

*/ inline Relationship& WithResourceName(const Aws::String& value) { SetResourceName(value); return *this;} /** *

The custom name of the related resource, if available.

*/ inline Relationship& WithResourceName(Aws::String&& value) { SetResourceName(std::move(value)); return *this;} /** *

The custom name of the related resource, if available.

*/ inline Relationship& WithResourceName(const char* value) { SetResourceName(value); return *this;} /** *

The type of relationship with the related resource.

*/ inline const Aws::String& GetRelationshipName() const{ return m_relationshipName; } /** *

The type of relationship with the related resource.

*/ inline bool RelationshipNameHasBeenSet() const { return m_relationshipNameHasBeenSet; } /** *

The type of relationship with the related resource.

*/ inline void SetRelationshipName(const Aws::String& value) { m_relationshipNameHasBeenSet = true; m_relationshipName = value; } /** *

The type of relationship with the related resource.

*/ inline void SetRelationshipName(Aws::String&& value) { m_relationshipNameHasBeenSet = true; m_relationshipName = std::move(value); } /** *

The type of relationship with the related resource.

*/ inline void SetRelationshipName(const char* value) { m_relationshipNameHasBeenSet = true; m_relationshipName.assign(value); } /** *

The type of relationship with the related resource.

*/ inline Relationship& WithRelationshipName(const Aws::String& value) { SetRelationshipName(value); return *this;} /** *

The type of relationship with the related resource.

*/ inline Relationship& WithRelationshipName(Aws::String&& value) { SetRelationshipName(std::move(value)); return *this;} /** *

The type of relationship with the related resource.

*/ inline Relationship& WithRelationshipName(const char* value) { SetRelationshipName(value); return *this;} private: ResourceType m_resourceType; bool m_resourceTypeHasBeenSet = false; Aws::String m_resourceId; bool m_resourceIdHasBeenSet = false; Aws::String m_resourceName; bool m_resourceNameHasBeenSet = false; Aws::String m_relationshipName; bool m_relationshipNameHasBeenSet = false; }; } // namespace Model } // namespace ConfigService } // namespace Aws