AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateSiteRequest.h
1
6#pragma once
7#include <aws/networkmanager/NetworkManager_EXPORTS.h>
8#include <aws/networkmanager/NetworkManagerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/networkmanager/model/Location.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/networkmanager/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace NetworkManager
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_NETWORKMANAGER_API CreateSiteRequest();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateSite"; }
34
35 AWS_NETWORKMANAGER_API Aws::String SerializePayload() const override;
36
37
39
42 inline const Aws::String& GetGlobalNetworkId() const{ return m_globalNetworkId; }
43 inline bool GlobalNetworkIdHasBeenSet() const { return m_globalNetworkIdHasBeenSet; }
44 inline void SetGlobalNetworkId(const Aws::String& value) { m_globalNetworkIdHasBeenSet = true; m_globalNetworkId = value; }
45 inline void SetGlobalNetworkId(Aws::String&& value) { m_globalNetworkIdHasBeenSet = true; m_globalNetworkId = std::move(value); }
46 inline void SetGlobalNetworkId(const char* value) { m_globalNetworkIdHasBeenSet = true; m_globalNetworkId.assign(value); }
47 inline CreateSiteRequest& WithGlobalNetworkId(const Aws::String& value) { SetGlobalNetworkId(value); return *this;}
48 inline CreateSiteRequest& WithGlobalNetworkId(Aws::String&& value) { SetGlobalNetworkId(std::move(value)); return *this;}
49 inline CreateSiteRequest& WithGlobalNetworkId(const char* value) { SetGlobalNetworkId(value); return *this;}
51
53
57 inline const Aws::String& GetDescription() const{ return m_description; }
58 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
59 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
60 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
61 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
62 inline CreateSiteRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
63 inline CreateSiteRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
64 inline CreateSiteRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
66
68
76 inline const Location& GetLocation() const{ return m_location; }
77 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
78 inline void SetLocation(const Location& value) { m_locationHasBeenSet = true; m_location = value; }
79 inline void SetLocation(Location&& value) { m_locationHasBeenSet = true; m_location = std::move(value); }
80 inline CreateSiteRequest& WithLocation(const Location& value) { SetLocation(value); return *this;}
81 inline CreateSiteRequest& WithLocation(Location&& value) { SetLocation(std::move(value)); return *this;}
83
85
88 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
89 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
90 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
91 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
92 inline CreateSiteRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
93 inline CreateSiteRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
94 inline CreateSiteRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
95 inline CreateSiteRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
97 private:
98
99 Aws::String m_globalNetworkId;
100 bool m_globalNetworkIdHasBeenSet = false;
101
102 Aws::String m_description;
103 bool m_descriptionHasBeenSet = false;
104
105 Location m_location;
106 bool m_locationHasBeenSet = false;
107
108 Aws::Vector<Tag> m_tags;
109 bool m_tagsHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace NetworkManager
114} // namespace Aws
CreateSiteRequest & WithLocation(Location &&value)
CreateSiteRequest & WithLocation(const Location &value)
CreateSiteRequest & AddTags(Tag &&value)
CreateSiteRequest & WithTags(const Aws::Vector< Tag > &value)
const Aws::Vector< Tag > & GetTags() const
CreateSiteRequest & WithGlobalNetworkId(Aws::String &&value)
CreateSiteRequest & WithGlobalNetworkId(const Aws::String &value)
CreateSiteRequest & WithDescription(const char *value)
CreateSiteRequest & WithTags(Aws::Vector< Tag > &&value)
void SetGlobalNetworkId(const Aws::String &value)
void SetTags(Aws::Vector< Tag > &&value)
AWS_NETWORKMANAGER_API Aws::String SerializePayload() const override
void SetTags(const Aws::Vector< Tag > &value)
CreateSiteRequest & WithDescription(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
CreateSiteRequest & WithDescription(const Aws::String &value)
void SetDescription(const Aws::String &value)
CreateSiteRequest & AddTags(const Tag &value)
CreateSiteRequest & WithGlobalNetworkId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector