AWS SDK for C++  1.9.109
AWS SDK for C++
Ec2AmiResource.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 Snowball
22 {
23 namespace Model
24 {
25 
35  {
36  public:
41 
42 
46  inline const Aws::String& GetAmiId() const{ return m_amiId; }
47 
51  inline bool AmiIdHasBeenSet() const { return m_amiIdHasBeenSet; }
52 
56  inline void SetAmiId(const Aws::String& value) { m_amiIdHasBeenSet = true; m_amiId = value; }
57 
61  inline void SetAmiId(Aws::String&& value) { m_amiIdHasBeenSet = true; m_amiId = std::move(value); }
62 
66  inline void SetAmiId(const char* value) { m_amiIdHasBeenSet = true; m_amiId.assign(value); }
67 
71  inline Ec2AmiResource& WithAmiId(const Aws::String& value) { SetAmiId(value); return *this;}
72 
76  inline Ec2AmiResource& WithAmiId(Aws::String&& value) { SetAmiId(std::move(value)); return *this;}
77 
81  inline Ec2AmiResource& WithAmiId(const char* value) { SetAmiId(value); return *this;}
82 
83 
87  inline const Aws::String& GetSnowballAmiId() const{ return m_snowballAmiId; }
88 
92  inline bool SnowballAmiIdHasBeenSet() const { return m_snowballAmiIdHasBeenSet; }
93 
97  inline void SetSnowballAmiId(const Aws::String& value) { m_snowballAmiIdHasBeenSet = true; m_snowballAmiId = value; }
98 
102  inline void SetSnowballAmiId(Aws::String&& value) { m_snowballAmiIdHasBeenSet = true; m_snowballAmiId = std::move(value); }
103 
107  inline void SetSnowballAmiId(const char* value) { m_snowballAmiIdHasBeenSet = true; m_snowballAmiId.assign(value); }
108 
112  inline Ec2AmiResource& WithSnowballAmiId(const Aws::String& value) { SetSnowballAmiId(value); return *this;}
113 
117  inline Ec2AmiResource& WithSnowballAmiId(Aws::String&& value) { SetSnowballAmiId(std::move(value)); return *this;}
118 
122  inline Ec2AmiResource& WithSnowballAmiId(const char* value) { SetSnowballAmiId(value); return *this;}
123 
124  private:
125 
126  Aws::String m_amiId;
127  bool m_amiIdHasBeenSet;
128 
129  Aws::String m_snowballAmiId;
130  bool m_snowballAmiIdHasBeenSet;
131  };
132 
133 } // namespace Model
134 } // namespace Snowball
135 } // namespace Aws
Aws::Snowball::Model::Ec2AmiResource::Ec2AmiResource
Ec2AmiResource()
Aws::Snowball::Model::Ec2AmiResource::SetAmiId
void SetAmiId(const Aws::String &value)
Definition: Ec2AmiResource.h:56
Aws::Snowball::Model::Ec2AmiResource::WithSnowballAmiId
Ec2AmiResource & WithSnowballAmiId(Aws::String &&value)
Definition: Ec2AmiResource.h:117
Aws::Snowball::Model::Ec2AmiResource::SetSnowballAmiId
void SetSnowballAmiId(Aws::String &&value)
Definition: Ec2AmiResource.h:102
Aws::Snowball::Model::Ec2AmiResource::SetSnowballAmiId
void SetSnowballAmiId(const Aws::String &value)
Definition: Ec2AmiResource.h:97
Aws::Snowball::Model::Ec2AmiResource::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Snowball::Model::Ec2AmiResource::SetAmiId
void SetAmiId(const char *value)
Definition: Ec2AmiResource.h:66
Aws::Snowball::Model::Ec2AmiResource::WithSnowballAmiId
Ec2AmiResource & WithSnowballAmiId(const Aws::String &value)
Definition: Ec2AmiResource.h:112
AWS_SNOWBALL_API
#define AWS_SNOWBALL_API
Definition: Snowball_EXPORTS.h:28
Aws::Snowball::Model::Ec2AmiResource::operator=
Ec2AmiResource & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Snowball::Model::Ec2AmiResource::WithAmiId
Ec2AmiResource & WithAmiId(const Aws::String &value)
Definition: Ec2AmiResource.h:71
Aws::Snowball::Model::Ec2AmiResource::AmiIdHasBeenSet
bool AmiIdHasBeenSet() const
Definition: Ec2AmiResource.h:51
Aws::Snowball::Model::Ec2AmiResource::SetAmiId
void SetAmiId(Aws::String &&value)
Definition: Ec2AmiResource.h:61
Aws::Snowball::Model::Ec2AmiResource
Definition: Ec2AmiResource.h:35
Aws::Snowball::Model::Ec2AmiResource::SetSnowballAmiId
void SetSnowballAmiId(const char *value)
Definition: Ec2AmiResource.h:107
Aws::Snowball::Model::Ec2AmiResource::WithSnowballAmiId
Ec2AmiResource & WithSnowballAmiId(const char *value)
Definition: Ec2AmiResource.h:122
Aws
Definition: AccessManagementClient.h:15
Aws::Snowball::Model::Ec2AmiResource::WithAmiId
Ec2AmiResource & WithAmiId(const char *value)
Definition: Ec2AmiResource.h:81
Aws::Snowball::Model::Ec2AmiResource::GetAmiId
const Aws::String & GetAmiId() const
Definition: Ec2AmiResource.h:46
Aws::Snowball::Model::Ec2AmiResource::SnowballAmiIdHasBeenSet
bool SnowballAmiIdHasBeenSet() const
Definition: Ec2AmiResource.h:92
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Snowball::Model::Ec2AmiResource::GetSnowballAmiId
const Aws::String & GetSnowballAmiId() const
Definition: Ec2AmiResource.h:87
Aws::Snowball::Model::Ec2AmiResource::Ec2AmiResource
Ec2AmiResource(Aws::Utils::Json::JsonView jsonValue)
Snowball_EXPORTS.h
Aws::Snowball::Model::Ec2AmiResource::WithAmiId
Ec2AmiResource & WithAmiId(Aws::String &&value)
Definition: Ec2AmiResource.h:76