This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-mobile/include/aws/mobile/model/Resource.h

202 lines
6.1 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/mobile/Mobile_EXPORTS.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 Mobile
{
namespace Model
{
/**
* <p> Information about an instance of an AWS resource associated with a project.
* </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/Resource">AWS API
* Reference</a></p>
*/
class AWS_MOBILE_API Resource
{
public:
Resource();
Resource(Aws::Utils::Json::JsonView jsonValue);
Resource& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
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;}
inline const Aws::String& GetName() const{ return m_name; }
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
inline Resource& WithName(const Aws::String& value) { SetName(value); return *this;}
inline Resource& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
inline Resource& WithName(const char* value) { SetName(value); return *this;}
inline const Aws::String& GetArn() const{ return m_arn; }
inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
inline Resource& WithArn(const Aws::String& value) { SetArn(value); return *this;}
inline Resource& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
inline Resource& WithArn(const char* value) { SetArn(value); return *this;}
inline const Aws::String& GetFeature() const{ return m_feature; }
inline bool FeatureHasBeenSet() const { return m_featureHasBeenSet; }
inline void SetFeature(const Aws::String& value) { m_featureHasBeenSet = true; m_feature = value; }
inline void SetFeature(Aws::String&& value) { m_featureHasBeenSet = true; m_feature = std::move(value); }
inline void SetFeature(const char* value) { m_featureHasBeenSet = true; m_feature.assign(value); }
inline Resource& WithFeature(const Aws::String& value) { SetFeature(value); return *this;}
inline Resource& WithFeature(Aws::String&& value) { SetFeature(std::move(value)); return *this;}
inline Resource& WithFeature(const char* value) { SetFeature(value); return *this;}
inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const{ return m_attributes; }
inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
inline void SetAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
inline void SetAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
inline Resource& WithAttributes(const Aws::Map<Aws::String, Aws::String>& value) { SetAttributes(value); return *this;}
inline Resource& WithAttributes(Aws::Map<Aws::String, Aws::String>&& value) { SetAttributes(std::move(value)); return *this;}
inline Resource& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
inline Resource& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
inline Resource& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
inline Resource& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; }
inline Resource& AddAttributes(const char* key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
inline Resource& AddAttributes(Aws::String&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
inline Resource& AddAttributes(const char* key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
private:
Aws::String m_type;
bool m_typeHasBeenSet;
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::String m_arn;
bool m_arnHasBeenSet;
Aws::String m_feature;
bool m_featureHasBeenSet;
Aws::Map<Aws::String, Aws::String> m_attributes;
bool m_attributesHasBeenSet;
};
} // namespace Model
} // namespace Mobile
} // namespace Aws