133 lines
4.1 KiB
C++
133 lines
4.1 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/resource-groups/ResourceGroups_EXPORTS.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace Utils
|
|
{
|
|
namespace Json
|
|
{
|
|
class JsonValue;
|
|
class JsonView;
|
|
} // namespace Json
|
|
} // namespace Utils
|
|
namespace ResourceGroups
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* <p>The ARN of a resource, and its resource type.</p><p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/ResourceIdentifier">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
class AWS_RESOURCEGROUPS_API ResourceIdentifier
|
|
{
|
|
public:
|
|
ResourceIdentifier();
|
|
ResourceIdentifier(Aws::Utils::Json::JsonView jsonValue);
|
|
ResourceIdentifier& operator=(Aws::Utils::Json::JsonView jsonValue);
|
|
Aws::Utils::Json::JsonValue Jsonize() const;
|
|
|
|
|
|
/**
|
|
* <p>The ARN of a resource.</p>
|
|
*/
|
|
inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
|
|
|
|
/**
|
|
* <p>The ARN of a resource.</p>
|
|
*/
|
|
inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The ARN of a resource.</p>
|
|
*/
|
|
inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
|
|
|
|
/**
|
|
* <p>The ARN of a resource.</p>
|
|
*/
|
|
inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
|
|
|
|
/**
|
|
* <p>The ARN of a resource.</p>
|
|
*/
|
|
inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
|
|
|
|
/**
|
|
* <p>The ARN of a resource.</p>
|
|
*/
|
|
inline ResourceIdentifier& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
|
|
|
|
/**
|
|
* <p>The ARN of a resource.</p>
|
|
*/
|
|
inline ResourceIdentifier& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The ARN of a resource.</p>
|
|
*/
|
|
inline ResourceIdentifier& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The resource type of a resource, such as <code>AWS::EC2::Instance</code>.</p>
|
|
*/
|
|
inline const Aws::String& GetResourceType() const{ return m_resourceType; }
|
|
|
|
/**
|
|
* <p>The resource type of a resource, such as <code>AWS::EC2::Instance</code>.</p>
|
|
*/
|
|
inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The resource type of a resource, such as <code>AWS::EC2::Instance</code>.</p>
|
|
*/
|
|
inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
|
|
|
|
/**
|
|
* <p>The resource type of a resource, such as <code>AWS::EC2::Instance</code>.</p>
|
|
*/
|
|
inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
|
|
|
|
/**
|
|
* <p>The resource type of a resource, such as <code>AWS::EC2::Instance</code>.</p>
|
|
*/
|
|
inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); }
|
|
|
|
/**
|
|
* <p>The resource type of a resource, such as <code>AWS::EC2::Instance</code>.</p>
|
|
*/
|
|
inline ResourceIdentifier& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;}
|
|
|
|
/**
|
|
* <p>The resource type of a resource, such as <code>AWS::EC2::Instance</code>.</p>
|
|
*/
|
|
inline ResourceIdentifier& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The resource type of a resource, such as <code>AWS::EC2::Instance</code>.</p>
|
|
*/
|
|
inline ResourceIdentifier& WithResourceType(const char* value) { SetResourceType(value); return *this;}
|
|
|
|
private:
|
|
|
|
Aws::String m_resourceArn;
|
|
bool m_resourceArnHasBeenSet;
|
|
|
|
Aws::String m_resourceType;
|
|
bool m_resourceTypeHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace ResourceGroups
|
|
} // namespace Aws
|