AWS SDK for C++  1.9.104
AWS SDK for C++
ResourceInfo.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace AppRegistry
22 {
23 namespace Model
24 {
25 
32  {
33  public:
38 
39 
43  inline const Aws::String& GetName() const{ return m_name; }
44 
48  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 
53  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
54 
58  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
59 
63  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
64 
68  inline ResourceInfo& WithName(const Aws::String& value) { SetName(value); return *this;}
69 
73  inline ResourceInfo& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
74 
78  inline ResourceInfo& WithName(const char* value) { SetName(value); return *this;}
79 
80 
85  inline const Aws::String& GetArn() const{ return m_arn; }
86 
91  inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
92 
97  inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
98 
103  inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
104 
109  inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
110 
115  inline ResourceInfo& WithArn(const Aws::String& value) { SetArn(value); return *this;}
116 
121  inline ResourceInfo& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
122 
127  inline ResourceInfo& WithArn(const char* value) { SetArn(value); return *this;}
128 
129  private:
130 
131  Aws::String m_name;
132  bool m_nameHasBeenSet;
133 
134  Aws::String m_arn;
135  bool m_arnHasBeenSet;
136  };
137 
138 } // namespace Model
139 } // namespace AppRegistry
140 } // namespace Aws
Aws::AppRegistry::Model::ResourceInfo::WithName
ResourceInfo & WithName(Aws::String &&value)
Definition: ResourceInfo.h:73
AWS_APPREGISTRY_API
#define AWS_APPREGISTRY_API
Definition: AppRegistry_EXPORTS.h:28
Aws::AppRegistry::Model::ResourceInfo::SetName
void SetName(const char *value)
Definition: ResourceInfo.h:63
Aws::AppRegistry::Model::ResourceInfo::SetArn
void SetArn(const char *value)
Definition: ResourceInfo.h:109
Aws::AppRegistry::Model::ResourceInfo::ResourceInfo
ResourceInfo()
Aws::AppRegistry::Model::ResourceInfo::WithName
ResourceInfo & WithName(const char *value)
Definition: ResourceInfo.h:78
Aws::AppRegistry::Model::ResourceInfo::WithArn
ResourceInfo & WithArn(const Aws::String &value)
Definition: ResourceInfo.h:115
Aws::AppRegistry::Model::ResourceInfo::WithName
ResourceInfo & WithName(const Aws::String &value)
Definition: ResourceInfo.h:68
Aws::AppRegistry::Model::ResourceInfo::WithArn
ResourceInfo & WithArn(const char *value)
Definition: ResourceInfo.h:127
Aws::AppRegistry::Model::ResourceInfo::SetName
void SetName(Aws::String &&value)
Definition: ResourceInfo.h:58
Aws::AppRegistry::Model::ResourceInfo::SetArn
void SetArn(Aws::String &&value)
Definition: ResourceInfo.h:103
Aws::AppRegistry::Model::ResourceInfo
Definition: ResourceInfo.h:32
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::AppRegistry::Model::ResourceInfo::ArnHasBeenSet
bool ArnHasBeenSet() const
Definition: ResourceInfo.h:91
Aws::AppRegistry::Model::ResourceInfo::GetArn
const Aws::String & GetArn() const
Definition: ResourceInfo.h:85
Aws::AppRegistry::Model::ResourceInfo::SetName
void SetName(const Aws::String &value)
Definition: ResourceInfo.h:53
Aws::AppRegistry::Model::ResourceInfo::WithArn
ResourceInfo & WithArn(Aws::String &&value)
Definition: ResourceInfo.h:121
Aws
Definition: AccessManagementClient.h:15
Aws::AppRegistry::Model::ResourceInfo::ResourceInfo
ResourceInfo(Aws::Utils::Json::JsonView jsonValue)
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AppRegistry::Model::ResourceInfo::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::AppRegistry::Model::ResourceInfo::NameHasBeenSet
bool NameHasBeenSet() const
Definition: ResourceInfo.h:48
Aws::AppRegistry::Model::ResourceInfo::operator=
ResourceInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::AppRegistry::Model::ResourceInfo::SetArn
void SetArn(const Aws::String &value)
Definition: ResourceInfo.h:97
AppRegistry_EXPORTS.h
Aws::AppRegistry::Model::ResourceInfo::GetName
const Aws::String & GetName() const
Definition: ResourceInfo.h:43