AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AssociateResourceResult.h
1
6#pragma once
7#include <aws/servicecatalog-appregistry/AppRegistry_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/servicecatalog-appregistry/model/AssociationOption.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace AppRegistry
26{
27namespace Model
28{
30 {
31 public:
32 AWS_APPREGISTRY_API AssociateResourceResult() = default;
35
36
38
42 inline const Aws::String& GetApplicationArn() const { return m_applicationArn; }
43 template<typename ApplicationArnT = Aws::String>
44 void SetApplicationArn(ApplicationArnT&& value) { m_applicationArnHasBeenSet = true; m_applicationArn = std::forward<ApplicationArnT>(value); }
45 template<typename ApplicationArnT = Aws::String>
46 AssociateResourceResult& WithApplicationArn(ApplicationArnT&& value) { SetApplicationArn(std::forward<ApplicationArnT>(value)); return *this;}
48
50
53 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
54 template<typename ResourceArnT = Aws::String>
55 void SetResourceArn(ResourceArnT&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::forward<ResourceArnT>(value); }
56 template<typename ResourceArnT = Aws::String>
57 AssociateResourceResult& WithResourceArn(ResourceArnT&& value) { SetResourceArn(std::forward<ResourceArnT>(value)); return *this;}
59
61
64 inline const Aws::Vector<AssociationOption>& GetOptions() const { return m_options; }
65 template<typename OptionsT = Aws::Vector<AssociationOption>>
66 void SetOptions(OptionsT&& value) { m_optionsHasBeenSet = true; m_options = std::forward<OptionsT>(value); }
67 template<typename OptionsT = Aws::Vector<AssociationOption>>
68 AssociateResourceResult& WithOptions(OptionsT&& value) { SetOptions(std::forward<OptionsT>(value)); return *this;}
69 inline AssociateResourceResult& AddOptions(AssociationOption value) { m_optionsHasBeenSet = true; m_options.push_back(value); return *this; }
71
73
74 inline const Aws::String& GetRequestId() const { return m_requestId; }
75 template<typename RequestIdT = Aws::String>
76 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
77 template<typename RequestIdT = Aws::String>
78 AssociateResourceResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
80 private:
81
82 Aws::String m_applicationArn;
83 bool m_applicationArnHasBeenSet = false;
84
85 Aws::String m_resourceArn;
86 bool m_resourceArnHasBeenSet = false;
87
89 bool m_optionsHasBeenSet = false;
90
91 Aws::String m_requestId;
92 bool m_requestIdHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace AppRegistry
97} // namespace Aws
AWS_APPREGISTRY_API AssociateResourceResult()=default
const Aws::Vector< AssociationOption > & GetOptions() const
AWS_APPREGISTRY_API AssociateResourceResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_APPREGISTRY_API AssociateResourceResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AssociateResourceResult & WithApplicationArn(ApplicationArnT &&value)
AssociateResourceResult & WithOptions(OptionsT &&value)
AssociateResourceResult & WithRequestId(RequestIdT &&value)
AssociateResourceResult & WithResourceArn(ResourceArnT &&value)
AssociateResourceResult & AddOptions(AssociationOption value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue