AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
UpdateAssociationRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/devops-agent/DevOpsAgentRequest.h>
9#include <aws/devops-agent/DevOpsAgent_EXPORTS.h>
10#include <aws/devops-agent/model/ServiceConfiguration.h>
11
12#include <utility>
13
14namespace Aws {
15namespace DevOpsAgent {
16namespace Model {
17
25 public:
26 AWS_DEVOPSAGENT_API UpdateAssociationRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "UpdateAssociation"; }
33
34 AWS_DEVOPSAGENT_API Aws::String SerializePayload() const override;
35
37
40 inline const Aws::String& GetAgentSpaceId() const { return m_agentSpaceId; }
41 inline bool AgentSpaceIdHasBeenSet() const { return m_agentSpaceIdHasBeenSet; }
42 template <typename AgentSpaceIdT = Aws::String>
43 void SetAgentSpaceId(AgentSpaceIdT&& value) {
44 m_agentSpaceIdHasBeenSet = true;
45 m_agentSpaceId = std::forward<AgentSpaceIdT>(value);
46 }
47 template <typename AgentSpaceIdT = Aws::String>
49 SetAgentSpaceId(std::forward<AgentSpaceIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetAssociationId() const { return m_associationId; }
59 inline bool AssociationIdHasBeenSet() const { return m_associationIdHasBeenSet; }
60 template <typename AssociationIdT = Aws::String>
61 void SetAssociationId(AssociationIdT&& value) {
62 m_associationIdHasBeenSet = true;
63 m_associationId = std::forward<AssociationIdT>(value);
64 }
65 template <typename AssociationIdT = Aws::String>
67 SetAssociationId(std::forward<AssociationIdT>(value));
68 return *this;
69 }
71
73
77 inline const ServiceConfiguration& GetConfiguration() const { return m_configuration; }
78 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
79 template <typename ConfigurationT = ServiceConfiguration>
80 void SetConfiguration(ConfigurationT&& value) {
81 m_configurationHasBeenSet = true;
82 m_configuration = std::forward<ConfigurationT>(value);
83 }
84 template <typename ConfigurationT = ServiceConfiguration>
86 SetConfiguration(std::forward<ConfigurationT>(value));
87 return *this;
88 }
90 private:
91 Aws::String m_agentSpaceId;
92
93 Aws::String m_associationId;
94
95 ServiceConfiguration m_configuration;
96 bool m_agentSpaceIdHasBeenSet = false;
97 bool m_associationIdHasBeenSet = false;
98 bool m_configurationHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace DevOpsAgent
103} // namespace Aws
UpdateAssociationRequest & WithAgentSpaceId(AgentSpaceIdT &&value)
virtual const char * GetServiceRequestName() const override
UpdateAssociationRequest & WithAssociationId(AssociationIdT &&value)
const ServiceConfiguration & GetConfiguration() const
AWS_DEVOPSAGENT_API UpdateAssociationRequest()=default
UpdateAssociationRequest & WithConfiguration(ConfigurationT &&value)
AWS_DEVOPSAGENT_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String