AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RegisterUsageRequest.h
1
6#pragma once
7#include <aws/meteringmarketplace/MarketplaceMetering_EXPORTS.h>
8#include <aws/meteringmarketplace/MarketplaceMeteringRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace MarketplaceMetering
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_MARKETPLACEMETERING_API RegisterUsageRequest();
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_MARKETPLACEMETERING_API Aws::String SerializePayload() const override;
33
34 AWS_MARKETPLACEMETERING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
36
38
43 inline const Aws::String& GetProductCode() const{ return m_productCode; }
44 inline bool ProductCodeHasBeenSet() const { return m_productCodeHasBeenSet; }
45 inline void SetProductCode(const Aws::String& value) { m_productCodeHasBeenSet = true; m_productCode = value; }
46 inline void SetProductCode(Aws::String&& value) { m_productCodeHasBeenSet = true; m_productCode = std::move(value); }
47 inline void SetProductCode(const char* value) { m_productCodeHasBeenSet = true; m_productCode.assign(value); }
48 inline RegisterUsageRequest& WithProductCode(const Aws::String& value) { SetProductCode(value); return *this;}
49 inline RegisterUsageRequest& WithProductCode(Aws::String&& value) { SetProductCode(std::move(value)); return *this;}
50 inline RegisterUsageRequest& WithProductCode(const char* value) { SetProductCode(value); return *this;}
52
54
57 inline int GetPublicKeyVersion() const{ return m_publicKeyVersion; }
58 inline bool PublicKeyVersionHasBeenSet() const { return m_publicKeyVersionHasBeenSet; }
59 inline void SetPublicKeyVersion(int value) { m_publicKeyVersionHasBeenSet = true; m_publicKeyVersion = value; }
60 inline RegisterUsageRequest& WithPublicKeyVersion(int value) { SetPublicKeyVersion(value); return *this;}
62
64
68 inline const Aws::String& GetNonce() const{ return m_nonce; }
69 inline bool NonceHasBeenSet() const { return m_nonceHasBeenSet; }
70 inline void SetNonce(const Aws::String& value) { m_nonceHasBeenSet = true; m_nonce = value; }
71 inline void SetNonce(Aws::String&& value) { m_nonceHasBeenSet = true; m_nonce = std::move(value); }
72 inline void SetNonce(const char* value) { m_nonceHasBeenSet = true; m_nonce.assign(value); }
73 inline RegisterUsageRequest& WithNonce(const Aws::String& value) { SetNonce(value); return *this;}
74 inline RegisterUsageRequest& WithNonce(Aws::String&& value) { SetNonce(std::move(value)); return *this;}
75 inline RegisterUsageRequest& WithNonce(const char* value) { SetNonce(value); return *this;}
77 private:
78
79 Aws::String m_productCode;
80 bool m_productCodeHasBeenSet = false;
81
82 int m_publicKeyVersion;
83 bool m_publicKeyVersionHasBeenSet = false;
84
85 Aws::String m_nonce;
86 bool m_nonceHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace MarketplaceMetering
91} // namespace Aws
RegisterUsageRequest & WithProductCode(const char *value)
RegisterUsageRequest & WithProductCode(Aws::String &&value)
AWS_MARKETPLACEMETERING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
RegisterUsageRequest & WithNonce(const char *value)
AWS_MARKETPLACEMETERING_API Aws::String SerializePayload() const override
AWS_MARKETPLACEMETERING_API RegisterUsageRequest()
RegisterUsageRequest & WithNonce(Aws::String &&value)
RegisterUsageRequest & WithProductCode(const Aws::String &value)
RegisterUsageRequest & WithNonce(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String