AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
UpdateResourceTargetRequest.h
1
6#pragma once
7#include <aws/backup-external/BackupExternalRequest.h>
8#include <aws/backup-external/BackupExternal_EXPORTS.h>
9#include <aws/backup-external/model/ResourceTargetConfiguration.h>
10#include <aws/backup-external/model/ResourceTargetConfigurationSource.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace BackupExternal {
17namespace Model {
18
22 public:
23 AWS_BACKUPEXTERNAL_API UpdateResourceTargetRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "UpdateResourceTarget"; }
30
31 AWS_BACKUPEXTERNAL_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::String& GetArn() const { return m_arn; }
38 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
39 template <typename ArnT = Aws::String>
40 void SetArn(ArnT&& value) {
41 m_arnHasBeenSet = true;
42 m_arn = std::forward<ArnT>(value);
43 }
44 template <typename ArnT = Aws::String>
46 SetArn(std::forward<ArnT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetName() const { return m_name; }
56 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
57 template <typename NameT = Aws::String>
58 void SetName(NameT&& value) {
59 m_nameHasBeenSet = true;
60 m_name = std::forward<NameT>(value);
61 }
62 template <typename NameT = Aws::String>
64 SetName(std::forward<NameT>(value));
65 return *this;
66 }
68
70
73 inline const ResourceTargetConfiguration& GetTargetConfiguration() const { return m_targetConfiguration; }
74 inline bool TargetConfigurationHasBeenSet() const { return m_targetConfigurationHasBeenSet; }
75 template <typename TargetConfigurationT = ResourceTargetConfiguration>
76 void SetTargetConfiguration(TargetConfigurationT&& value) {
77 m_targetConfigurationHasBeenSet = true;
78 m_targetConfiguration = std::forward<TargetConfigurationT>(value);
79 }
80 template <typename TargetConfigurationT = ResourceTargetConfiguration>
82 SetTargetConfiguration(std::forward<TargetConfigurationT>(value));
83 return *this;
84 }
86
88
91 inline ResourceTargetConfigurationSource GetTargetConfigurationSource() const { return m_targetConfigurationSource; }
92 inline bool TargetConfigurationSourceHasBeenSet() const { return m_targetConfigurationSourceHasBeenSet; }
94 m_targetConfigurationSourceHasBeenSet = true;
95 m_targetConfigurationSource = value;
96 }
102 private:
103 Aws::String m_arn;
104
105 Aws::String m_name;
106
107 ResourceTargetConfiguration m_targetConfiguration;
108
110 bool m_arnHasBeenSet = false;
111 bool m_nameHasBeenSet = false;
112 bool m_targetConfigurationHasBeenSet = false;
113 bool m_targetConfigurationSourceHasBeenSet = false;
114};
115
116} // namespace Model
117} // namespace BackupExternal
118} // namespace Aws
const ResourceTargetConfiguration & GetTargetConfiguration() const
void SetTargetConfigurationSource(ResourceTargetConfigurationSource value)
AWS_BACKUPEXTERNAL_API UpdateResourceTargetRequest()=default
AWS_BACKUPEXTERNAL_API Aws::String SerializePayload() const override
ResourceTargetConfigurationSource GetTargetConfigurationSource() const
UpdateResourceTargetRequest & WithTargetConfiguration(TargetConfigurationT &&value)
UpdateResourceTargetRequest & WithTargetConfigurationSource(ResourceTargetConfigurationSource value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String