AWS SDK for C++  1.9.108
AWS SDK for C++
ResourceReceivingAccess.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 Lightsail
22 {
23 namespace Model
24 {
25 
33  {
34  public:
39 
40 
44  inline const Aws::String& GetName() const{ return m_name; }
45 
49  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 
54  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
55 
59  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
60 
64  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
65 
69  inline ResourceReceivingAccess& WithName(const Aws::String& value) { SetName(value); return *this;}
70 
74  inline ResourceReceivingAccess& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
75 
79  inline ResourceReceivingAccess& WithName(const char* value) { SetName(value); return *this;}
80 
81 
85  inline const Aws::String& GetResourceType() const{ return m_resourceType; }
86 
90  inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
91 
95  inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
96 
100  inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
101 
105  inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); }
106 
110  inline ResourceReceivingAccess& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;}
111 
115  inline ResourceReceivingAccess& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;}
116 
120  inline ResourceReceivingAccess& WithResourceType(const char* value) { SetResourceType(value); return *this;}
121 
122  private:
123 
124  Aws::String m_name;
125  bool m_nameHasBeenSet;
126 
127  Aws::String m_resourceType;
128  bool m_resourceTypeHasBeenSet;
129  };
130 
131 } // namespace Model
132 } // namespace Lightsail
133 } // namespace Aws
Aws::Lightsail::Model::ResourceReceivingAccess::SetName
void SetName(const char *value)
Definition: ResourceReceivingAccess.h:64
Aws::Lightsail::Model::ResourceReceivingAccess::WithResourceType
ResourceReceivingAccess & WithResourceType(Aws::String &&value)
Definition: ResourceReceivingAccess.h:115
Aws::Lightsail::Model::ResourceReceivingAccess::SetResourceType
void SetResourceType(const Aws::String &value)
Definition: ResourceReceivingAccess.h:95
Aws::Lightsail::Model::ResourceReceivingAccess::WithName
ResourceReceivingAccess & WithName(const Aws::String &value)
Definition: ResourceReceivingAccess.h:69
Aws::Lightsail::Model::ResourceReceivingAccess::WithName
ResourceReceivingAccess & WithName(Aws::String &&value)
Definition: ResourceReceivingAccess.h:74
Aws::Lightsail::Model::ResourceReceivingAccess::GetName
const Aws::String & GetName() const
Definition: ResourceReceivingAccess.h:44
Aws::Lightsail::Model::ResourceReceivingAccess::SetResourceType
void SetResourceType(const char *value)
Definition: ResourceReceivingAccess.h:105
Aws::Lightsail::Model::ResourceReceivingAccess::operator=
ResourceReceivingAccess & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Lightsail::Model::ResourceReceivingAccess::GetResourceType
const Aws::String & GetResourceType() const
Definition: ResourceReceivingAccess.h:85
Aws::Lightsail::Model::ResourceReceivingAccess::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Lightsail::Model::ResourceReceivingAccess::ResourceReceivingAccess
ResourceReceivingAccess(Aws::Utils::Json::JsonView jsonValue)
Lightsail_EXPORTS.h
Aws::Lightsail::Model::ResourceReceivingAccess::SetResourceType
void SetResourceType(Aws::String &&value)
Definition: ResourceReceivingAccess.h:100
Aws::Lightsail::Model::ResourceReceivingAccess::SetName
void SetName(Aws::String &&value)
Definition: ResourceReceivingAccess.h:59
Aws::Lightsail::Model::ResourceReceivingAccess::ResourceReceivingAccess
ResourceReceivingAccess()
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::ResourceReceivingAccess::SetName
void SetName(const Aws::String &value)
Definition: ResourceReceivingAccess.h:54
Aws::Lightsail::Model::ResourceReceivingAccess::ResourceTypeHasBeenSet
bool ResourceTypeHasBeenSet() const
Definition: ResourceReceivingAccess.h:90
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lightsail::Model::ResourceReceivingAccess::WithResourceType
ResourceReceivingAccess & WithResourceType(const char *value)
Definition: ResourceReceivingAccess.h:120
Aws::Lightsail::Model::ResourceReceivingAccess::WithResourceType
ResourceReceivingAccess & WithResourceType(const Aws::String &value)
Definition: ResourceReceivingAccess.h:110
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::ResourceReceivingAccess::NameHasBeenSet
bool NameHasBeenSet() const
Definition: ResourceReceivingAccess.h:49
Aws::Lightsail::Model::ResourceReceivingAccess
Definition: ResourceReceivingAccess.h:33
Aws::Lightsail::Model::ResourceReceivingAccess::WithName
ResourceReceivingAccess & WithName(const char *value)
Definition: ResourceReceivingAccess.h:79