AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
AssociateSbomWithPackageVersionRequest.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/iot/IoTRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/iot/model/Sbom.h>
11#include <utility>
12#include <aws/core/utils/UUID.h>
13
14namespace Aws
15{
16namespace Http
17{
18 class URI;
19} //namespace Http
20namespace IoT
21{
22namespace Model
23{
24
28 {
29 public:
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "AssociateSbomWithPackageVersion"; }
37
38 AWS_IOT_API Aws::String SerializePayload() const override;
39
40 AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
41
42
44
47 inline const Aws::String& GetPackageName() const { return m_packageName; }
48 inline bool PackageNameHasBeenSet() const { return m_packageNameHasBeenSet; }
49 template<typename PackageNameT = Aws::String>
50 void SetPackageName(PackageNameT&& value) { m_packageNameHasBeenSet = true; m_packageName = std::forward<PackageNameT>(value); }
51 template<typename PackageNameT = Aws::String>
52 AssociateSbomWithPackageVersionRequest& WithPackageName(PackageNameT&& value) { SetPackageName(std::forward<PackageNameT>(value)); return *this;}
54
56
59 inline const Aws::String& GetVersionName() const { return m_versionName; }
60 inline bool VersionNameHasBeenSet() const { return m_versionNameHasBeenSet; }
61 template<typename VersionNameT = Aws::String>
62 void SetVersionName(VersionNameT&& value) { m_versionNameHasBeenSet = true; m_versionName = std::forward<VersionNameT>(value); }
63 template<typename VersionNameT = Aws::String>
64 AssociateSbomWithPackageVersionRequest& WithVersionName(VersionNameT&& value) { SetVersionName(std::forward<VersionNameT>(value)); return *this;}
66
68
69 inline const Sbom& GetSbom() const { return m_sbom; }
70 inline bool SbomHasBeenSet() const { return m_sbomHasBeenSet; }
71 template<typename SbomT = Sbom>
72 void SetSbom(SbomT&& value) { m_sbomHasBeenSet = true; m_sbom = std::forward<SbomT>(value); }
73 template<typename SbomT = Sbom>
74 AssociateSbomWithPackageVersionRequest& WithSbom(SbomT&& value) { SetSbom(std::forward<SbomT>(value)); return *this;}
76
78
83 inline const Aws::String& GetClientToken() const { return m_clientToken; }
84 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
85 template<typename ClientTokenT = Aws::String>
86 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
87 template<typename ClientTokenT = Aws::String>
88 AssociateSbomWithPackageVersionRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
90 private:
91
92 Aws::String m_packageName;
93 bool m_packageNameHasBeenSet = false;
94
95 Aws::String m_versionName;
96 bool m_versionNameHasBeenSet = false;
97
98 Sbom m_sbom;
99 bool m_sbomHasBeenSet = false;
100
102 bool m_clientTokenHasBeenSet = true;
103 };
104
105} // namespace Model
106} // namespace IoT
107} // namespace Aws
AssociateSbomWithPackageVersionRequest & WithPackageName(PackageNameT &&value)
AssociateSbomWithPackageVersionRequest & WithSbom(SbomT &&value)
AssociateSbomWithPackageVersionRequest & WithVersionName(VersionNameT &&value)
AWS_IOT_API Aws::String SerializePayload() const override
AssociateSbomWithPackageVersionRequest & WithClientToken(ClientTokenT &&value)
AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String