118 lines
5.1 KiB
C
118 lines
5.1 KiB
C
|
|
/**
|
|||
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|||
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
#pragma once
|
|||
|
|
#include <aws/ecr/ECR_EXPORTS.h>
|
|||
|
|
#include <aws/ecr/model/ResourceDetails.h>
|
|||
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|||
|
|
#include <aws/core/utils/memory/stl/AWSMap.h>
|
|||
|
|
#include <utility>
|
|||
|
|
|
|||
|
|
namespace Aws
|
|||
|
|
{
|
|||
|
|
namespace Utils
|
|||
|
|
{
|
|||
|
|
namespace Json
|
|||
|
|
{
|
|||
|
|
class JsonValue;
|
|||
|
|
class JsonView;
|
|||
|
|
} // namespace Json
|
|||
|
|
} // namespace Utils
|
|||
|
|
namespace ECR
|
|||
|
|
{
|
|||
|
|
namespace Model
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Details about the resource involved in a finding.</p><p><h3>See Also:</h3>
|
|||
|
|
* <a href="http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/Resource">AWS API
|
|||
|
|
* Reference</a></p>
|
|||
|
|
*/
|
|||
|
|
class Resource
|
|||
|
|
{
|
|||
|
|
public:
|
|||
|
|
AWS_ECR_API Resource();
|
|||
|
|
AWS_ECR_API Resource(Aws::Utils::Json::JsonView jsonValue);
|
|||
|
|
AWS_ECR_API Resource& operator=(Aws::Utils::Json::JsonView jsonValue);
|
|||
|
|
AWS_ECR_API Aws::Utils::Json::JsonValue Jsonize() const;
|
|||
|
|
|
|||
|
|
|
|||
|
|
///@{
|
|||
|
|
/**
|
|||
|
|
* <p>An object that contains details about the resource involved in a finding.</p>
|
|||
|
|
*/
|
|||
|
|
inline const ResourceDetails& GetDetails() const{ return m_details; }
|
|||
|
|
inline bool DetailsHasBeenSet() const { return m_detailsHasBeenSet; }
|
|||
|
|
inline void SetDetails(const ResourceDetails& value) { m_detailsHasBeenSet = true; m_details = value; }
|
|||
|
|
inline void SetDetails(ResourceDetails&& value) { m_detailsHasBeenSet = true; m_details = std::move(value); }
|
|||
|
|
inline Resource& WithDetails(const ResourceDetails& value) { SetDetails(value); return *this;}
|
|||
|
|
inline Resource& WithDetails(ResourceDetails&& value) { SetDetails(std::move(value)); return *this;}
|
|||
|
|
///@}
|
|||
|
|
|
|||
|
|
///@{
|
|||
|
|
/**
|
|||
|
|
* <p>The ID of the resource.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetId() const{ return m_id; }
|
|||
|
|
inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
|
|||
|
|
inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
|
|||
|
|
inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
|
|||
|
|
inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
|
|||
|
|
inline Resource& WithId(const Aws::String& value) { SetId(value); return *this;}
|
|||
|
|
inline Resource& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
|
|||
|
|
inline Resource& WithId(const char* value) { SetId(value); return *this;}
|
|||
|
|
///@}
|
|||
|
|
|
|||
|
|
///@{
|
|||
|
|
/**
|
|||
|
|
* <p>The tags attached to the resource.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
|
|||
|
|
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
|
|||
|
|
inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
|
|||
|
|
inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
|
|||
|
|
inline Resource& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
|
|||
|
|
inline Resource& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
|
|||
|
|
inline Resource& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
|
|||
|
|
inline Resource& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
|
|||
|
|
inline Resource& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
|
|||
|
|
inline Resource& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
|
|||
|
|
inline Resource& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
|
|||
|
|
inline Resource& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
|
|||
|
|
inline Resource& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
|
|||
|
|
///@}
|
|||
|
|
|
|||
|
|
///@{
|
|||
|
|
/**
|
|||
|
|
* <p>The type of resource.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetType() const{ return m_type; }
|
|||
|
|
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
|
|||
|
|
inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
|
|||
|
|
inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
|
|||
|
|
inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
|
|||
|
|
inline Resource& WithType(const Aws::String& value) { SetType(value); return *this;}
|
|||
|
|
inline Resource& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
|
|||
|
|
inline Resource& WithType(const char* value) { SetType(value); return *this;}
|
|||
|
|
///@}
|
|||
|
|
private:
|
|||
|
|
|
|||
|
|
ResourceDetails m_details;
|
|||
|
|
bool m_detailsHasBeenSet = false;
|
|||
|
|
|
|||
|
|
Aws::String m_id;
|
|||
|
|
bool m_idHasBeenSet = false;
|
|||
|
|
|
|||
|
|
Aws::Map<Aws::String, Aws::String> m_tags;
|
|||
|
|
bool m_tagsHasBeenSet = false;
|
|||
|
|
|
|||
|
|
Aws::String m_type;
|
|||
|
|
bool m_typeHasBeenSet = false;
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
} // namespace Model
|
|||
|
|
} // namespace ECR
|
|||
|
|
} // namespace Aws
|