AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
UpdateTrustAnchorRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/rolesanywhere/RolesAnywhereRequest.h>
9#include <aws/rolesanywhere/RolesAnywhere_EXPORTS.h>
10#include <aws/rolesanywhere/model/Source.h>
11
12#include <utility>
13
14namespace Aws {
15namespace RolesAnywhere {
16namespace Model {
17
21 public:
22 AWS_ROLESANYWHERE_API UpdateTrustAnchorRequest() = 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 "UpdateTrustAnchor"; }
29
30 AWS_ROLESANYWHERE_API Aws::String SerializePayload() const override;
31
33
36 inline const Aws::String& GetTrustAnchorId() const { return m_trustAnchorId; }
37 inline bool TrustAnchorIdHasBeenSet() const { return m_trustAnchorIdHasBeenSet; }
38 template <typename TrustAnchorIdT = Aws::String>
39 void SetTrustAnchorId(TrustAnchorIdT&& value) {
40 m_trustAnchorIdHasBeenSet = true;
41 m_trustAnchorId = std::forward<TrustAnchorIdT>(value);
42 }
43 template <typename TrustAnchorIdT = Aws::String>
45 SetTrustAnchorId(std::forward<TrustAnchorIdT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetName() const { return m_name; }
55 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
56 template <typename NameT = Aws::String>
57 void SetName(NameT&& value) {
58 m_nameHasBeenSet = true;
59 m_name = std::forward<NameT>(value);
60 }
61 template <typename NameT = Aws::String>
63 SetName(std::forward<NameT>(value));
64 return *this;
65 }
67
69
72 inline const Source& GetSource() const { return m_source; }
73 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
74 template <typename SourceT = Source>
75 void SetSource(SourceT&& value) {
76 m_sourceHasBeenSet = true;
77 m_source = std::forward<SourceT>(value);
78 }
79 template <typename SourceT = Source>
81 SetSource(std::forward<SourceT>(value));
82 return *this;
83 }
85 private:
86 Aws::String m_trustAnchorId;
87
88 Aws::String m_name;
89
90 Source m_source;
91 bool m_trustAnchorIdHasBeenSet = false;
92 bool m_nameHasBeenSet = false;
93 bool m_sourceHasBeenSet = false;
94};
95
96} // namespace Model
97} // namespace RolesAnywhere
98} // namespace Aws
UpdateTrustAnchorRequest & WithName(NameT &&value)
AWS_ROLESANYWHERE_API UpdateTrustAnchorRequest()=default
UpdateTrustAnchorRequest & WithTrustAnchorId(TrustAnchorIdT &&value)
virtual const char * GetServiceRequestName() const override
AWS_ROLESANYWHERE_API Aws::String SerializePayload() const override
UpdateTrustAnchorRequest & WithSource(SourceT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String