AWS SDK for C++  1.8.95
AWS SDK for C++
RegisterUsageRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace MarketplaceMetering
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "RegisterUsage"; }
31 
32  Aws::String SerializePayload() const override;
33 
34  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35 
36 
42  inline const Aws::String& GetProductCode() const{ return m_productCode; }
43 
49  inline bool ProductCodeHasBeenSet() const { return m_productCodeHasBeenSet; }
50 
56  inline void SetProductCode(const Aws::String& value) { m_productCodeHasBeenSet = true; m_productCode = value; }
57 
63  inline void SetProductCode(Aws::String&& value) { m_productCodeHasBeenSet = true; m_productCode = std::move(value); }
64 
70  inline void SetProductCode(const char* value) { m_productCodeHasBeenSet = true; m_productCode.assign(value); }
71 
77  inline RegisterUsageRequest& WithProductCode(const Aws::String& value) { SetProductCode(value); return *this;}
78 
84  inline RegisterUsageRequest& WithProductCode(Aws::String&& value) { SetProductCode(std::move(value)); return *this;}
85 
91  inline RegisterUsageRequest& WithProductCode(const char* value) { SetProductCode(value); return *this;}
92 
93 
97  inline int GetPublicKeyVersion() const{ return m_publicKeyVersion; }
98 
102  inline bool PublicKeyVersionHasBeenSet() const { return m_publicKeyVersionHasBeenSet; }
103 
107  inline void SetPublicKeyVersion(int value) { m_publicKeyVersionHasBeenSet = true; m_publicKeyVersion = value; }
108 
112  inline RegisterUsageRequest& WithPublicKeyVersion(int value) { SetPublicKeyVersion(value); return *this;}
113 
114 
119  inline const Aws::String& GetNonce() const{ return m_nonce; }
120 
125  inline bool NonceHasBeenSet() const { return m_nonceHasBeenSet; }
126 
131  inline void SetNonce(const Aws::String& value) { m_nonceHasBeenSet = true; m_nonce = value; }
132 
137  inline void SetNonce(Aws::String&& value) { m_nonceHasBeenSet = true; m_nonce = std::move(value); }
138 
143  inline void SetNonce(const char* value) { m_nonceHasBeenSet = true; m_nonce.assign(value); }
144 
149  inline RegisterUsageRequest& WithNonce(const Aws::String& value) { SetNonce(value); return *this;}
150 
155  inline RegisterUsageRequest& WithNonce(Aws::String&& value) { SetNonce(std::move(value)); return *this;}
156 
161  inline RegisterUsageRequest& WithNonce(const char* value) { SetNonce(value); return *this;}
162 
163  private:
164 
165  Aws::String m_productCode;
166  bool m_productCodeHasBeenSet;
167 
168  int m_publicKeyVersion;
169  bool m_publicKeyVersionHasBeenSet;
170 
171  Aws::String m_nonce;
172  bool m_nonceHasBeenSet;
173  };
174 
175 } // namespace Model
176 } // namespace MarketplaceMetering
177 } // namespace Aws
RegisterUsageRequest & WithNonce(const Aws::String &value)
RegisterUsageRequest & WithProductCode(const Aws::String &value)
RegisterUsageRequest & WithProductCode(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
RegisterUsageRequest & WithNonce(const char *value)
RegisterUsageRequest & WithNonce(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_MARKETPLACEMETERING_API
RegisterUsageRequest & WithProductCode(Aws::String &&value)
virtual const char * GetServiceRequestName() const override