AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename GlobalNetworkIdT = Aws::String>
45 void SetGlobalNetworkId(GlobalNetworkIdT&& value) { m_globalNetworkIdHasBeenSet = true; m_globalNetworkId = std::forward<GlobalNetworkIdT>(value); }
46 template<typename GlobalNetworkIdT = Aws::String>
47 CreateSiteRequest& WithGlobalNetworkId(GlobalNetworkIdT&& value) { SetGlobalNetworkId(std::forward<GlobalNetworkIdT>(value)); return *this;}
49
51
55 inline const Aws::String& GetDescription() const { return m_description; }
56 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
57 template<typename DescriptionT = Aws::String>
58 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
59 template<typename DescriptionT = Aws::String>
60 CreateSiteRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
62
64
72 inline const Location& GetLocation() const { return m_location; }
73 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
74 template<typename LocationT = Location>
75 void SetLocation(LocationT&& value) { m_locationHasBeenSet = true; m_location = std::forward<LocationT>(value); }
76 template<typename LocationT = Location>
77 CreateSiteRequest& WithLocation(LocationT&& value) { SetLocation(std::forward<LocationT>(value)); return *this;}
79
81
84 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
85 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
86 template<typename TagsT = Aws::Vector<Tag>>
87 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
88 template<typename TagsT = Aws::Vector<Tag>>
89 CreateSiteRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
90 template<typename TagsT = Tag>
91 CreateSiteRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
93 private:
94
95 Aws::String m_globalNetworkId;
96 bool m_globalNetworkIdHasBeenSet = false;
97
98 Aws::String m_description;
99 bool m_descriptionHasBeenSet = false;
100
101 Location m_location;
102 bool m_locationHasBeenSet = false;
103
104 Aws::Vector<Tag> m_tags;
105 bool m_tagsHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace NetworkManager
110} // namespace Aws
AWS_NETWORKMANAGER_API CreateSiteRequest()=default
CreateSiteRequest & WithLocation(LocationT &&value)
const Aws::Vector< Tag > & GetTags() const
AWS_NETWORKMANAGER_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
CreateSiteRequest & AddTags(TagsT &&value)
void SetGlobalNetworkId(GlobalNetworkIdT &&value)
CreateSiteRequest & WithDescription(DescriptionT &&value)
CreateSiteRequest & WithGlobalNetworkId(GlobalNetworkIdT &&value)
CreateSiteRequest & WithTags(TagsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector