AWS SDK for C++  1.9.66
AWS SDK for C++
OpsItemDataValue.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ssm/SSM_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace SSM
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
45  inline const Aws::String& GetValue() const{ return m_value; }
46 
50  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
51 
55  inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
56 
60  inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
61 
65  inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
66 
70  inline OpsItemDataValue& WithValue(const Aws::String& value) { SetValue(value); return *this;}
71 
75  inline OpsItemDataValue& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
76 
80  inline OpsItemDataValue& WithValue(const char* value) { SetValue(value); return *this;}
81 
82 
87  inline const OpsItemDataType& GetType() const{ return m_type; }
88 
93  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
94 
99  inline void SetType(const OpsItemDataType& value) { m_typeHasBeenSet = true; m_type = value; }
100 
105  inline void SetType(OpsItemDataType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
106 
111  inline OpsItemDataValue& WithType(const OpsItemDataType& value) { SetType(value); return *this;}
112 
117  inline OpsItemDataValue& WithType(OpsItemDataType&& value) { SetType(std::move(value)); return *this;}
118 
119  private:
120 
121  Aws::String m_value;
122  bool m_valueHasBeenSet;
123 
124  OpsItemDataType m_type;
125  bool m_typeHasBeenSet;
126  };
127 
128 } // namespace Model
129 } // namespace SSM
130 } // namespace Aws
OpsItemDataType.h
AWS_SSM_API
#define AWS_SSM_API
Definition: SSM_EXPORTS.h:28
Aws::SSM::Model::OpsItemDataValue::WithValue
OpsItemDataValue & WithValue(Aws::String &&value)
Definition: OpsItemDataValue.h:75
Aws::SSM::Model::OpsItemDataValue::GetValue
const Aws::String & GetValue() const
Definition: OpsItemDataValue.h:45
Aws::SSM::Model::OpsItemDataValue
Definition: OpsItemDataValue.h:34
Aws::SSM::Model::OpsItemDataValue::SetType
void SetType(OpsItemDataType &&value)
Definition: OpsItemDataValue.h:105
SSM_EXPORTS.h
Aws::SSM::Model::OpsItemDataValue::WithType
OpsItemDataValue & WithType(const OpsItemDataType &value)
Definition: OpsItemDataValue.h:111
Aws::SSM::Model::OpsItemDataValue::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: OpsItemDataValue.h:50
Aws::SSM::Model::OpsItemDataValue::WithValue
OpsItemDataValue & WithValue(const char *value)
Definition: OpsItemDataValue.h:80
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::SSM::Model::OpsItemDataValue::SetValue
void SetValue(const Aws::String &value)
Definition: OpsItemDataValue.h:55
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::SMS::Model::AppValidationStrategy::NOT_SET
@ NOT_SET
Aws::SSM::Model::OpsItemDataValue::OpsItemDataValue
OpsItemDataValue(Aws::Utils::Json::JsonView jsonValue)
Aws::SSM::Model::OpsItemDataValue::OpsItemDataValue
OpsItemDataValue()
Aws::SSM::Model::OpsItemDataValue::GetType
const OpsItemDataType & GetType() const
Definition: OpsItemDataValue.h:87
Aws::SSM::Model::OpsItemDataValue::SetValue
void SetValue(const char *value)
Definition: OpsItemDataValue.h:65
Aws
Definition: AccessManagementClient.h:15
Aws::SSM::Model::OpsItemDataValue::WithValue
OpsItemDataValue & WithValue(const Aws::String &value)
Definition: OpsItemDataValue.h:70
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SSM::Model::OpsItemDataValue::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: OpsItemDataValue.h:93
Aws::SSM::Model::OpsItemDataValue::WithType
OpsItemDataValue & WithType(OpsItemDataType &&value)
Definition: OpsItemDataValue.h:117
Aws::SSM::Model::OpsItemDataValue::operator=
OpsItemDataValue & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::SSM::Model::OpsItemDataValue::SetType
void SetType(const OpsItemDataType &value)
Definition: OpsItemDataValue.h:99
Aws::SSM::Model::OpsItemDataType
OpsItemDataType
Definition: OpsItemDataType.h:17
Aws::SSM::Model::OpsItemDataValue::SetValue
void SetValue(Aws::String &&value)
Definition: OpsItemDataValue.h:60
Aws::SSM::Model::OpsItemDataValue::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const