AWS SDK for C++  1.9.129
AWS SDK for C++
ResolveComponentCandidatesRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace GreengrassV2
17 {
18 namespace Model
19 {
20 
24  {
25  public:
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 "ResolveComponentCandidates"; }
33 
34  Aws::String SerializePayload() const override;
35 
36 
40  inline const ComponentPlatform& GetPlatform() const{ return m_platform; }
41 
45  inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
46 
50  inline void SetPlatform(const ComponentPlatform& value) { m_platformHasBeenSet = true; m_platform = value; }
51 
55  inline void SetPlatform(ComponentPlatform&& value) { m_platformHasBeenSet = true; m_platform = std::move(value); }
56 
60  inline ResolveComponentCandidatesRequest& WithPlatform(const ComponentPlatform& value) { SetPlatform(value); return *this;}
61 
65  inline ResolveComponentCandidatesRequest& WithPlatform(ComponentPlatform&& value) { SetPlatform(std::move(value)); return *this;}
66 
67 
71  inline const Aws::Vector<ComponentCandidate>& GetComponentCandidates() const{ return m_componentCandidates; }
72 
76  inline bool ComponentCandidatesHasBeenSet() const { return m_componentCandidatesHasBeenSet; }
77 
81  inline void SetComponentCandidates(const Aws::Vector<ComponentCandidate>& value) { m_componentCandidatesHasBeenSet = true; m_componentCandidates = value; }
82 
86  inline void SetComponentCandidates(Aws::Vector<ComponentCandidate>&& value) { m_componentCandidatesHasBeenSet = true; m_componentCandidates = std::move(value); }
87 
91  inline ResolveComponentCandidatesRequest& WithComponentCandidates(const Aws::Vector<ComponentCandidate>& value) { SetComponentCandidates(value); return *this;}
92 
96  inline ResolveComponentCandidatesRequest& WithComponentCandidates(Aws::Vector<ComponentCandidate>&& value) { SetComponentCandidates(std::move(value)); return *this;}
97 
101  inline ResolveComponentCandidatesRequest& AddComponentCandidates(const ComponentCandidate& value) { m_componentCandidatesHasBeenSet = true; m_componentCandidates.push_back(value); return *this; }
102 
106  inline ResolveComponentCandidatesRequest& AddComponentCandidates(ComponentCandidate&& value) { m_componentCandidatesHasBeenSet = true; m_componentCandidates.push_back(std::move(value)); return *this; }
107 
108  private:
109 
110  ComponentPlatform m_platform;
111  bool m_platformHasBeenSet;
112 
113  Aws::Vector<ComponentCandidate> m_componentCandidates;
114  bool m_componentCandidatesHasBeenSet;
115  };
116 
117 } // namespace Model
118 } // namespace GreengrassV2
119 } // namespace Aws
Aws::GreengrassV2::Model::ResolveComponentCandidatesRequest::SetComponentCandidates
void SetComponentCandidates(const Aws::Vector< ComponentCandidate > &value)
Definition: ResolveComponentCandidatesRequest.h:81
Aws::GreengrassV2::Model::ResolveComponentCandidatesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ResolveComponentCandidatesRequest.h:32
ComponentPlatform.h
Aws::GreengrassV2::Model::ResolveComponentCandidatesRequest::AddComponentCandidates
ResolveComponentCandidatesRequest & AddComponentCandidates(const ComponentCandidate &value)
Definition: ResolveComponentCandidatesRequest.h:101
Aws::GreengrassV2::Model::ResolveComponentCandidatesRequest::ComponentCandidatesHasBeenSet
bool ComponentCandidatesHasBeenSet() const
Definition: ResolveComponentCandidatesRequest.h:76
GreengrassV2Request.h
Aws::GreengrassV2::Model::ResolveComponentCandidatesRequest
Definition: ResolveComponentCandidatesRequest.h:24
Aws::GreengrassV2::Model::ResolveComponentCandidatesRequest::SetPlatform
void SetPlatform(const ComponentPlatform &value)
Definition: ResolveComponentCandidatesRequest.h:50
ComponentCandidate.h
GreengrassV2_EXPORTS.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
AWS_GREENGRASSV2_API
#define AWS_GREENGRASSV2_API
Definition: GreengrassV2_EXPORTS.h:28
Aws::GreengrassV2::Model::ResolveComponentCandidatesRequest::WithPlatform
ResolveComponentCandidatesRequest & WithPlatform(ComponentPlatform &&value)
Definition: ResolveComponentCandidatesRequest.h:65
Aws::GreengrassV2::Model::ResolveComponentCandidatesRequest::SetPlatform
void SetPlatform(ComponentPlatform &&value)
Definition: ResolveComponentCandidatesRequest.h:55
Aws::GreengrassV2::Model::ResolveComponentCandidatesRequest::SetComponentCandidates
void SetComponentCandidates(Aws::Vector< ComponentCandidate > &&value)
Definition: ResolveComponentCandidatesRequest.h:86
Aws::GreengrassV2::Model::ComponentPlatform
Definition: ComponentPlatform.h:34
Aws::GreengrassV2::GreengrassV2Request
Definition: GreengrassV2Request.h:17
Aws::GreengrassV2::Model::ResolveComponentCandidatesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::GreengrassV2::Model::ResolveComponentCandidatesRequest::WithComponentCandidates
ResolveComponentCandidatesRequest & WithComponentCandidates(const Aws::Vector< ComponentCandidate > &value)
Definition: ResolveComponentCandidatesRequest.h:91
Aws::GreengrassV2::Model::ResolveComponentCandidatesRequest::GetComponentCandidates
const Aws::Vector< ComponentCandidate > & GetComponentCandidates() const
Definition: ResolveComponentCandidatesRequest.h:71
Aws::GreengrassV2::Model::ResolveComponentCandidatesRequest::ResolveComponentCandidatesRequest
ResolveComponentCandidatesRequest()
Aws::GreengrassV2::Model::ResolveComponentCandidatesRequest::WithPlatform
ResolveComponentCandidatesRequest & WithPlatform(const ComponentPlatform &value)
Definition: ResolveComponentCandidatesRequest.h:60
Aws::GreengrassV2::Model::ResolveComponentCandidatesRequest::WithComponentCandidates
ResolveComponentCandidatesRequest & WithComponentCandidates(Aws::Vector< ComponentCandidate > &&value)
Definition: ResolveComponentCandidatesRequest.h:96
Aws
Definition: AccessManagementClient.h:15
Aws::GreengrassV2::Model::ResolveComponentCandidatesRequest::GetPlatform
const ComponentPlatform & GetPlatform() const
Definition: ResolveComponentCandidatesRequest.h:40
Aws::GreengrassV2::Model::ComponentCandidate
Definition: ComponentCandidate.h:34
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GreengrassV2::Model::ResolveComponentCandidatesRequest::PlatformHasBeenSet
bool PlatformHasBeenSet() const
Definition: ResolveComponentCandidatesRequest.h:45
Aws::GreengrassV2::Model::ResolveComponentCandidatesRequest::AddComponentCandidates
ResolveComponentCandidatesRequest & AddComponentCandidates(ComponentCandidate &&value)
Definition: ResolveComponentCandidatesRequest.h:106