AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Action.h
1
6#pragma once
7#include <aws/dlm/DLM_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/dlm/model/CrossRegionCopyAction.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace DLM
24{
25namespace Model
26{
27
34 class Action
35 {
36 public:
37 AWS_DLM_API Action();
38 AWS_DLM_API Action(Aws::Utils::Json::JsonView jsonValue);
41
42
44
47 inline const Aws::String& GetName() const{ return m_name; }
48 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
50 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
51 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
52 inline Action& WithName(const Aws::String& value) { SetName(value); return *this;}
53 inline Action& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
54 inline Action& WithName(const char* value) { SetName(value); return *this;}
56
58
61 inline const Aws::Vector<CrossRegionCopyAction>& GetCrossRegionCopy() const{ return m_crossRegionCopy; }
62 inline bool CrossRegionCopyHasBeenSet() const { return m_crossRegionCopyHasBeenSet; }
63 inline void SetCrossRegionCopy(const Aws::Vector<CrossRegionCopyAction>& value) { m_crossRegionCopyHasBeenSet = true; m_crossRegionCopy = value; }
64 inline void SetCrossRegionCopy(Aws::Vector<CrossRegionCopyAction>&& value) { m_crossRegionCopyHasBeenSet = true; m_crossRegionCopy = std::move(value); }
66 inline Action& WithCrossRegionCopy(Aws::Vector<CrossRegionCopyAction>&& value) { SetCrossRegionCopy(std::move(value)); return *this;}
67 inline Action& AddCrossRegionCopy(const CrossRegionCopyAction& value) { m_crossRegionCopyHasBeenSet = true; m_crossRegionCopy.push_back(value); return *this; }
68 inline Action& AddCrossRegionCopy(CrossRegionCopyAction&& value) { m_crossRegionCopyHasBeenSet = true; m_crossRegionCopy.push_back(std::move(value)); return *this; }
70 private:
71
72 Aws::String m_name;
73 bool m_nameHasBeenSet = false;
74
75 Aws::Vector<CrossRegionCopyAction> m_crossRegionCopy;
76 bool m_crossRegionCopyHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace DLM
81} // namespace Aws
Action & WithName(const Aws::String &value)
Definition Action.h:52
const Aws::Vector< CrossRegionCopyAction > & GetCrossRegionCopy() const
Definition Action.h:61
bool NameHasBeenSet() const
Definition Action.h:48
Action & WithName(const char *value)
Definition Action.h:54
Action & AddCrossRegionCopy(CrossRegionCopyAction &&value)
Definition Action.h:68
AWS_DLM_API Aws::Utils::Json::JsonValue Jsonize() const
void SetCrossRegionCopy(Aws::Vector< CrossRegionCopyAction > &&value)
Definition Action.h:64
bool CrossRegionCopyHasBeenSet() const
Definition Action.h:62
AWS_DLM_API Action & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetName(Aws::String &&value)
Definition Action.h:50
void SetName(const Aws::String &value)
Definition Action.h:49
Action & WithCrossRegionCopy(const Aws::Vector< CrossRegionCopyAction > &value)
Definition Action.h:65
const Aws::String & GetName() const
Definition Action.h:47
Action & WithName(Aws::String &&value)
Definition Action.h:53
Action & WithCrossRegionCopy(Aws::Vector< CrossRegionCopyAction > &&value)
Definition Action.h:66
void SetName(const char *value)
Definition Action.h:51
Action & AddCrossRegionCopy(const CrossRegionCopyAction &value)
Definition Action.h:67
AWS_DLM_API Action(Aws::Utils::Json::JsonView jsonValue)
void SetCrossRegionCopy(const Aws::Vector< CrossRegionCopyAction > &value)
Definition Action.h:63
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue