AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename ProductCodeT = Aws::String>
46 void SetProductCode(ProductCodeT&& value) { m_productCodeHasBeenSet = true; m_productCode = std::forward<ProductCodeT>(value); }
47 template<typename ProductCodeT = Aws::String>
48 RegisterUsageRequest& WithProductCode(ProductCodeT&& value) { SetProductCode(std::forward<ProductCodeT>(value)); return *this;}
50
52
55 inline int GetPublicKeyVersion() const { return m_publicKeyVersion; }
56 inline bool PublicKeyVersionHasBeenSet() const { return m_publicKeyVersionHasBeenSet; }
57 inline void SetPublicKeyVersion(int value) { m_publicKeyVersionHasBeenSet = true; m_publicKeyVersion = value; }
58 inline RegisterUsageRequest& WithPublicKeyVersion(int value) { SetPublicKeyVersion(value); return *this;}
60
62
66 inline const Aws::String& GetNonce() const { return m_nonce; }
67 inline bool NonceHasBeenSet() const { return m_nonceHasBeenSet; }
68 template<typename NonceT = Aws::String>
69 void SetNonce(NonceT&& value) { m_nonceHasBeenSet = true; m_nonce = std::forward<NonceT>(value); }
70 template<typename NonceT = Aws::String>
71 RegisterUsageRequest& WithNonce(NonceT&& value) { SetNonce(std::forward<NonceT>(value)); return *this;}
73 private:
74
75 Aws::String m_productCode;
76 bool m_productCodeHasBeenSet = false;
77
78 int m_publicKeyVersion{0};
79 bool m_publicKeyVersionHasBeenSet = false;
80
81 Aws::String m_nonce;
82 bool m_nonceHasBeenSet = false;
83 };
84
85} // namespace Model
86} // namespace MarketplaceMetering
87} // namespace Aws
AWS_MARKETPLACEMETERING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
RegisterUsageRequest & WithProductCode(ProductCodeT &&value)
AWS_MARKETPLACEMETERING_API Aws::String SerializePayload() const override
AWS_MARKETPLACEMETERING_API RegisterUsageRequest()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String