AWS SDK for C++  1.9.104
AWS SDK for C++
Resource.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 CodeStar
22 {
23 namespace Model
24 {
25 
32  {
33  public:
38 
39 
43  inline const Aws::String& GetId() const{ return m_id; }
44 
48  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
49 
53  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
54 
58  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
59 
63  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
64 
68  inline Resource& WithId(const Aws::String& value) { SetId(value); return *this;}
69 
73  inline Resource& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
74 
78  inline Resource& WithId(const char* value) { SetId(value); return *this;}
79 
80  private:
81 
82  Aws::String m_id;
83  bool m_idHasBeenSet;
84  };
85 
86 } // namespace Model
87 } // namespace CodeStar
88 } // namespace Aws
Aws::CodeStar::Model::Resource::GetId
const Aws::String & GetId() const
Definition: Resource.h:43
Aws::CodeStar::Model::Resource::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
AWS_CODESTAR_API
#define AWS_CODESTAR_API
Definition: CodeStar_EXPORTS.h:28
Aws::CodeStar::Model::Resource::Resource
Resource(Aws::Utils::Json::JsonView jsonValue)
Aws::CodeStar::Model::Resource
Definition: Resource.h:32
Aws::CodeStar::Model::Resource::Resource
Resource()
Aws::CodeStar::Model::Resource::SetId
void SetId(const char *value)
Definition: Resource.h:63
Aws::CodeStar::Model::Resource::SetId
void SetId(const Aws::String &value)
Definition: Resource.h:53
Aws::CodeStar::Model::Resource::SetId
void SetId(Aws::String &&value)
Definition: Resource.h:58
CodeStar_EXPORTS.h
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::CodeStar::Model::Resource::WithId
Resource & WithId(const Aws::String &value)
Definition: Resource.h:68
Aws::CodeStar::Model::Resource::WithId
Resource & WithId(Aws::String &&value)
Definition: Resource.h:73
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodeStar::Model::Resource::IdHasBeenSet
bool IdHasBeenSet() const
Definition: Resource.h:48
Aws::CodeStar::Model::Resource::WithId
Resource & WithId(const char *value)
Definition: Resource.h:78
Aws::CodeStar::Model::Resource::operator=
Resource & operator=(Aws::Utils::Json::JsonView jsonValue)