/** * 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 Mobile { namespace Model { /** *

Information about an instance of an AWS resource associated with a project. *

See Also:

AWS API * Reference

*/ class Resource { public: AWS_MOBILE_API Resource(); AWS_MOBILE_API Resource(Aws::Utils::Json::JsonView jsonValue); AWS_MOBILE_API Resource& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_MOBILE_API 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& GetAttributes() const{ return m_attributes; } inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; } inline void SetAttributes(const Aws::Map& value) { m_attributesHasBeenSet = true; m_attributes = value; } inline void SetAttributes(Aws::Map&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); } inline Resource& WithAttributes(const Aws::Map& value) { SetAttributes(value); return *this;} inline Resource& WithAttributes(Aws::Map&& 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 = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::String m_feature; bool m_featureHasBeenSet = false; Aws::Map m_attributes; bool m_attributesHasBeenSet = false; }; } // namespace Model } // namespace Mobile } // namespace Aws