AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
UpdateTrustAnchorRequest.h
1
6#pragma once
7#include <aws/rolesanywhere/RolesAnywhere_EXPORTS.h>
8#include <aws/rolesanywhere/RolesAnywhereRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/rolesanywhere/model/Source.h>
11#include <utility>
12
13namespace Aws
14{
15namespace RolesAnywhere
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_ROLESANYWHERE_API UpdateTrustAnchorRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdateTrustAnchor"; }
32
33 AWS_ROLESANYWHERE_API Aws::String SerializePayload() const override;
34
35
37
40 inline const Aws::String& GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 template<typename NameT = Aws::String>
43 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
44 template<typename NameT = Aws::String>
45 UpdateTrustAnchorRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
47
49
52 inline const Source& GetSource() const { return m_source; }
53 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
54 template<typename SourceT = Source>
55 void SetSource(SourceT&& value) { m_sourceHasBeenSet = true; m_source = std::forward<SourceT>(value); }
56 template<typename SourceT = Source>
57 UpdateTrustAnchorRequest& WithSource(SourceT&& value) { SetSource(std::forward<SourceT>(value)); return *this;}
59
61
64 inline const Aws::String& GetTrustAnchorId() const { return m_trustAnchorId; }
65 inline bool TrustAnchorIdHasBeenSet() const { return m_trustAnchorIdHasBeenSet; }
66 template<typename TrustAnchorIdT = Aws::String>
67 void SetTrustAnchorId(TrustAnchorIdT&& value) { m_trustAnchorIdHasBeenSet = true; m_trustAnchorId = std::forward<TrustAnchorIdT>(value); }
68 template<typename TrustAnchorIdT = Aws::String>
69 UpdateTrustAnchorRequest& WithTrustAnchorId(TrustAnchorIdT&& value) { SetTrustAnchorId(std::forward<TrustAnchorIdT>(value)); return *this;}
71 private:
72
73 Aws::String m_name;
74 bool m_nameHasBeenSet = false;
75
76 Source m_source;
77 bool m_sourceHasBeenSet = false;
78
79 Aws::String m_trustAnchorId;
80 bool m_trustAnchorIdHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace RolesAnywhere
85} // 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