AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateProtectionRequest.h
1
6#pragma once
7#include <aws/shield/Shield_EXPORTS.h>
8#include <aws/shield/ShieldRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/shield/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Shield
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_SHIELD_API CreateProtectionRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateProtection"; }
33
34 AWS_SHIELD_API Aws::String SerializePayload() const override;
35
37
38
40
43 inline const Aws::String& GetName() const{ return m_name; }
44 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
45 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
46 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
47 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
48 inline CreateProtectionRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
49 inline CreateProtectionRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
50 inline CreateProtectionRequest& WithName(const char* value) { SetName(value); return *this;}
52
54
71 inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
72 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
73 inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
74 inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
75 inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
76 inline CreateProtectionRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
77 inline CreateProtectionRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
78 inline CreateProtectionRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
80
82
86 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
87 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
88 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
89 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
90 inline CreateProtectionRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
91 inline CreateProtectionRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
92 inline CreateProtectionRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
93 inline CreateProtectionRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
95 private:
96
97 Aws::String m_name;
98 bool m_nameHasBeenSet = false;
99
100 Aws::String m_resourceArn;
101 bool m_resourceArnHasBeenSet = false;
102
103 Aws::Vector<Tag> m_tags;
104 bool m_tagsHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace Shield
109} // namespace Aws
CreateProtectionRequest & WithName(Aws::String &&value)
CreateProtectionRequest & WithResourceArn(Aws::String &&value)
AWS_SHIELD_API Aws::String SerializePayload() const override
CreateProtectionRequest & WithTags(Aws::Vector< Tag > &&value)
CreateProtectionRequest & WithResourceArn(const Aws::String &value)
CreateProtectionRequest & AddTags(const Tag &value)
AWS_SHIELD_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateProtectionRequest & WithName(const char *value)
CreateProtectionRequest & WithTags(const Aws::Vector< Tag > &value)
CreateProtectionRequest & WithResourceArn(const char *value)
virtual const char * GetServiceRequestName() const override
void SetTags(const Aws::Vector< Tag > &value)
CreateProtectionRequest & WithName(const Aws::String &value)
CreateProtectionRequest & AddTags(Tag &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector