AWS SDK for C++  1.9.132
AWS SDK for C++
MitigationActionIdentifier.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_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 IoT
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
45  inline const Aws::String& GetActionName() const{ return m_actionName; }
46 
50  inline bool ActionNameHasBeenSet() const { return m_actionNameHasBeenSet; }
51 
55  inline void SetActionName(const Aws::String& value) { m_actionNameHasBeenSet = true; m_actionName = value; }
56 
60  inline void SetActionName(Aws::String&& value) { m_actionNameHasBeenSet = true; m_actionName = std::move(value); }
61 
65  inline void SetActionName(const char* value) { m_actionNameHasBeenSet = true; m_actionName.assign(value); }
66 
70  inline MitigationActionIdentifier& WithActionName(const Aws::String& value) { SetActionName(value); return *this;}
71 
75  inline MitigationActionIdentifier& WithActionName(Aws::String&& value) { SetActionName(std::move(value)); return *this;}
76 
80  inline MitigationActionIdentifier& WithActionName(const char* value) { SetActionName(value); return *this;}
81 
82 
86  inline const Aws::String& GetActionArn() const{ return m_actionArn; }
87 
91  inline bool ActionArnHasBeenSet() const { return m_actionArnHasBeenSet; }
92 
96  inline void SetActionArn(const Aws::String& value) { m_actionArnHasBeenSet = true; m_actionArn = value; }
97 
101  inline void SetActionArn(Aws::String&& value) { m_actionArnHasBeenSet = true; m_actionArn = std::move(value); }
102 
106  inline void SetActionArn(const char* value) { m_actionArnHasBeenSet = true; m_actionArn.assign(value); }
107 
111  inline MitigationActionIdentifier& WithActionArn(const Aws::String& value) { SetActionArn(value); return *this;}
112 
116  inline MitigationActionIdentifier& WithActionArn(Aws::String&& value) { SetActionArn(std::move(value)); return *this;}
117 
121  inline MitigationActionIdentifier& WithActionArn(const char* value) { SetActionArn(value); return *this;}
122 
123 
127  inline const Aws::Utils::DateTime& GetCreationDate() const{ return m_creationDate; }
128 
132  inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
133 
137  inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDateHasBeenSet = true; m_creationDate = value; }
138 
142  inline void SetCreationDate(Aws::Utils::DateTime&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::move(value); }
143 
147  inline MitigationActionIdentifier& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;}
148 
152  inline MitigationActionIdentifier& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(std::move(value)); return *this;}
153 
154  private:
155 
156  Aws::String m_actionName;
157  bool m_actionNameHasBeenSet;
158 
159  Aws::String m_actionArn;
160  bool m_actionArnHasBeenSet;
161 
162  Aws::Utils::DateTime m_creationDate;
163  bool m_creationDateHasBeenSet;
164  };
165 
166 } // namespace Model
167 } // namespace IoT
168 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::IoT::Model::MitigationActionIdentifier::WithActionName
MitigationActionIdentifier & WithActionName(const Aws::String &value)
Definition: MitigationActionIdentifier.h:70
Aws::IoT::Model::MitigationActionIdentifier
Definition: MitigationActionIdentifier.h:34
Aws::IoT::Model::MitigationActionIdentifier::SetActionArn
void SetActionArn(const char *value)
Definition: MitigationActionIdentifier.h:106
Aws::IoT::Model::MitigationActionIdentifier::SetCreationDate
void SetCreationDate(const Aws::Utils::DateTime &value)
Definition: MitigationActionIdentifier.h:137
DateTime.h
Aws::IoT::Model::MitigationActionIdentifier::WithActionName
MitigationActionIdentifier & WithActionName(Aws::String &&value)
Definition: MitigationActionIdentifier.h:75
Aws::IoT::Model::MitigationActionIdentifier::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::IoT::Model::MitigationActionIdentifier::CreationDateHasBeenSet
bool CreationDateHasBeenSet() const
Definition: MitigationActionIdentifier.h:132
Aws::IoT::Model::MitigationActionIdentifier::SetActionName
void SetActionName(const Aws::String &value)
Definition: MitigationActionIdentifier.h:55
Aws::IoT::Model::MitigationActionIdentifier::WithActionArn
MitigationActionIdentifier & WithActionArn(const Aws::String &value)
Definition: MitigationActionIdentifier.h:111
Aws::IoT::Model::MitigationActionIdentifier::SetActionName
void SetActionName(Aws::String &&value)
Definition: MitigationActionIdentifier.h:60
Aws::IoT::Model::MitigationActionIdentifier::operator=
MitigationActionIdentifier & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::MitigationActionIdentifier::WithActionArn
MitigationActionIdentifier & WithActionArn(Aws::String &&value)
Definition: MitigationActionIdentifier.h:116
Aws::IoT::Model::MitigationActionIdentifier::MitigationActionIdentifier
MitigationActionIdentifier(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoT::Model::MitigationActionIdentifier::GetActionName
const Aws::String & GetActionName() const
Definition: MitigationActionIdentifier.h:45
Aws::IoT::Model::MitigationActionIdentifier::SetCreationDate
void SetCreationDate(Aws::Utils::DateTime &&value)
Definition: MitigationActionIdentifier.h:142
Aws::IoT::Model::MitigationActionIdentifier::ActionArnHasBeenSet
bool ActionArnHasBeenSet() const
Definition: MitigationActionIdentifier.h:91
Aws::IoT::Model::MitigationActionIdentifier::SetActionArn
void SetActionArn(Aws::String &&value)
Definition: MitigationActionIdentifier.h:101
Aws::IoT::Model::MitigationActionIdentifier::ActionNameHasBeenSet
bool ActionNameHasBeenSet() const
Definition: MitigationActionIdentifier.h:50
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::MitigationActionIdentifier::GetCreationDate
const Aws::Utils::DateTime & GetCreationDate() const
Definition: MitigationActionIdentifier.h:127
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::MitigationActionIdentifier::WithActionName
MitigationActionIdentifier & WithActionName(const char *value)
Definition: MitigationActionIdentifier.h:80
Aws::IoT::Model::MitigationActionIdentifier::SetActionName
void SetActionName(const char *value)
Definition: MitigationActionIdentifier.h:65
Aws::IoT::Model::MitigationActionIdentifier::WithActionArn
MitigationActionIdentifier & WithActionArn(const char *value)
Definition: MitigationActionIdentifier.h:121
Aws::IoT::Model::MitigationActionIdentifier::MitigationActionIdentifier
MitigationActionIdentifier()
Aws::IoT::Model::MitigationActionIdentifier::WithCreationDate
MitigationActionIdentifier & WithCreationDate(const Aws::Utils::DateTime &value)
Definition: MitigationActionIdentifier.h:147
Aws::IoT::Model::MitigationActionIdentifier::SetActionArn
void SetActionArn(const Aws::String &value)
Definition: MitigationActionIdentifier.h:96
Aws::IoT::Model::MitigationActionIdentifier::GetActionArn
const Aws::String & GetActionArn() const
Definition: MitigationActionIdentifier.h:86
IoT_EXPORTS.h
Aws::IoT::Model::MitigationActionIdentifier::WithCreationDate
MitigationActionIdentifier & WithCreationDate(Aws::Utils::DateTime &&value)
Definition: MitigationActionIdentifier.h:152