AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateNetworkRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/wickr/WickrRequest.h>
9#include <aws/wickr/Wickr_EXPORTS.h>
10#include <aws/wickr/model/AccessLevel.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Wickr {
16namespace Model {
17
21 public:
22 AWS_WICKR_API CreateNetworkRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "CreateNetwork"; }
29
30 AWS_WICKR_API Aws::String SerializePayload() const override;
31
33
36 inline const Aws::String& GetNetworkName() const { return m_networkName; }
37 inline bool NetworkNameHasBeenSet() const { return m_networkNameHasBeenSet; }
38 template <typename NetworkNameT = Aws::String>
39 void SetNetworkName(NetworkNameT&& value) {
40 m_networkNameHasBeenSet = true;
41 m_networkName = std::forward<NetworkNameT>(value);
42 }
43 template <typename NetworkNameT = Aws::String>
44 CreateNetworkRequest& WithNetworkName(NetworkNameT&& value) {
45 SetNetworkName(std::forward<NetworkNameT>(value));
46 return *this;
47 }
49
51
55 inline AccessLevel GetAccessLevel() const { return m_accessLevel; }
56 inline bool AccessLevelHasBeenSet() const { return m_accessLevelHasBeenSet; }
57 inline void SetAccessLevel(AccessLevel value) {
58 m_accessLevelHasBeenSet = true;
59 m_accessLevel = value;
60 }
62 SetAccessLevel(value);
63 return *this;
64 }
66
68
73 inline bool GetEnablePremiumFreeTrial() const { return m_enablePremiumFreeTrial; }
74 inline bool EnablePremiumFreeTrialHasBeenSet() const { return m_enablePremiumFreeTrialHasBeenSet; }
75 inline void SetEnablePremiumFreeTrial(bool value) {
76 m_enablePremiumFreeTrialHasBeenSet = true;
77 m_enablePremiumFreeTrial = value;
78 }
81 return *this;
82 }
84
86
90 inline const Aws::String& GetEncryptionKeyArn() const { return m_encryptionKeyArn; }
91 inline bool EncryptionKeyArnHasBeenSet() const { return m_encryptionKeyArnHasBeenSet; }
92 template <typename EncryptionKeyArnT = Aws::String>
93 void SetEncryptionKeyArn(EncryptionKeyArnT&& value) {
94 m_encryptionKeyArnHasBeenSet = true;
95 m_encryptionKeyArn = std::forward<EncryptionKeyArnT>(value);
96 }
97 template <typename EncryptionKeyArnT = Aws::String>
98 CreateNetworkRequest& WithEncryptionKeyArn(EncryptionKeyArnT&& value) {
99 SetEncryptionKeyArn(std::forward<EncryptionKeyArnT>(value));
100 return *this;
101 }
103 private:
104 Aws::String m_networkName;
105
106 AccessLevel m_accessLevel{AccessLevel::NOT_SET};
107
108 bool m_enablePremiumFreeTrial{false};
109
110 Aws::String m_encryptionKeyArn;
111 bool m_networkNameHasBeenSet = false;
112 bool m_accessLevelHasBeenSet = false;
113 bool m_enablePremiumFreeTrialHasBeenSet = false;
114 bool m_encryptionKeyArnHasBeenSet = false;
115};
116
117} // namespace Model
118} // namespace Wickr
119} // namespace Aws
AWS_WICKR_API Aws::String SerializePayload() const override
CreateNetworkRequest & WithAccessLevel(AccessLevel value)
CreateNetworkRequest & WithEncryptionKeyArn(EncryptionKeyArnT &&value)
virtual const char * GetServiceRequestName() const override
AWS_WICKR_API CreateNetworkRequest()=default
void SetEncryptionKeyArn(EncryptionKeyArnT &&value)
CreateNetworkRequest & WithNetworkName(NetworkNameT &&value)
CreateNetworkRequest & WithEnablePremiumFreeTrial(bool value)
const Aws::String & GetEncryptionKeyArn() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String