1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
6 #pragma once
7 #include <aws/servicecatalog/ServiceCatalog_EXPORTS.h>
8 #include <aws/servicecatalog/ServiceCatalogRequest.h>
9 #include <aws/core/utils/memory/stl/AWSVector.h>
10 #include <aws/core/utils/memory/stl/AWSString.h>
11 #include <aws/servicecatalog/model/ServiceActionAssociation.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace ServiceCatalog
17 {
18 namespace Model
19 {
20 
21   /**
22    */
23   class AWS_SERVICECATALOG_API BatchAssociateServiceActionWithProvisioningArtifactRequest : public ServiceCatalogRequest
24   {
25   public:
26     BatchAssociateServiceActionWithProvisioningArtifactRequest();
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.
GetServiceRequestName()32     inline virtual const char* GetServiceRequestName() const override { return "BatchAssociateServiceActionWithProvisioningArtifact"; }
33 
34     Aws::String SerializePayload() const override;
35 
36     Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37 
38 
39     /**
40      * <p>One or more associations, each consisting of the Action ID, the Product ID,
41      * and the Provisioning Artifact ID.</p>
42      */
GetServiceActionAssociations()43     inline const Aws::Vector<ServiceActionAssociation>& GetServiceActionAssociations() const{ return m_serviceActionAssociations; }
44 
45     /**
46      * <p>One or more associations, each consisting of the Action ID, the Product ID,
47      * and the Provisioning Artifact ID.</p>
48      */
ServiceActionAssociationsHasBeenSet()49     inline bool ServiceActionAssociationsHasBeenSet() const { return m_serviceActionAssociationsHasBeenSet; }
50 
51     /**
52      * <p>One or more associations, each consisting of the Action ID, the Product ID,
53      * and the Provisioning Artifact ID.</p>
54      */
SetServiceActionAssociations(const Aws::Vector<ServiceActionAssociation> & value)55     inline void SetServiceActionAssociations(const Aws::Vector<ServiceActionAssociation>& value) { m_serviceActionAssociationsHasBeenSet = true; m_serviceActionAssociations = value; }
56 
57     /**
58      * <p>One or more associations, each consisting of the Action ID, the Product ID,
59      * and the Provisioning Artifact ID.</p>
60      */
SetServiceActionAssociations(Aws::Vector<ServiceActionAssociation> && value)61     inline void SetServiceActionAssociations(Aws::Vector<ServiceActionAssociation>&& value) { m_serviceActionAssociationsHasBeenSet = true; m_serviceActionAssociations = std::move(value); }
62 
63     /**
64      * <p>One or more associations, each consisting of the Action ID, the Product ID,
65      * and the Provisioning Artifact ID.</p>
66      */
WithServiceActionAssociations(const Aws::Vector<ServiceActionAssociation> & value)67     inline BatchAssociateServiceActionWithProvisioningArtifactRequest& WithServiceActionAssociations(const Aws::Vector<ServiceActionAssociation>& value) { SetServiceActionAssociations(value); return *this;}
68 
69     /**
70      * <p>One or more associations, each consisting of the Action ID, the Product ID,
71      * and the Provisioning Artifact ID.</p>
72      */
WithServiceActionAssociations(Aws::Vector<ServiceActionAssociation> && value)73     inline BatchAssociateServiceActionWithProvisioningArtifactRequest& WithServiceActionAssociations(Aws::Vector<ServiceActionAssociation>&& value) { SetServiceActionAssociations(std::move(value)); return *this;}
74 
75     /**
76      * <p>One or more associations, each consisting of the Action ID, the Product ID,
77      * and the Provisioning Artifact ID.</p>
78      */
AddServiceActionAssociations(const ServiceActionAssociation & value)79     inline BatchAssociateServiceActionWithProvisioningArtifactRequest& AddServiceActionAssociations(const ServiceActionAssociation& value) { m_serviceActionAssociationsHasBeenSet = true; m_serviceActionAssociations.push_back(value); return *this; }
80 
81     /**
82      * <p>One or more associations, each consisting of the Action ID, the Product ID,
83      * and the Provisioning Artifact ID.</p>
84      */
AddServiceActionAssociations(ServiceActionAssociation && value)85     inline BatchAssociateServiceActionWithProvisioningArtifactRequest& AddServiceActionAssociations(ServiceActionAssociation&& value) { m_serviceActionAssociationsHasBeenSet = true; m_serviceActionAssociations.push_back(std::move(value)); return *this; }
86 
87 
88     /**
89      * <p>The language code.</p> <ul> <li> <p> <code>en</code> - English (default)</p>
90      * </li> <li> <p> <code>jp</code> - Japanese</p> </li> <li> <p> <code>zh</code> -
91      * Chinese</p> </li> </ul>
92      */
GetAcceptLanguage()93     inline const Aws::String& GetAcceptLanguage() const{ return m_acceptLanguage; }
94 
95     /**
96      * <p>The language code.</p> <ul> <li> <p> <code>en</code> - English (default)</p>
97      * </li> <li> <p> <code>jp</code> - Japanese</p> </li> <li> <p> <code>zh</code> -
98      * Chinese</p> </li> </ul>
99      */
AcceptLanguageHasBeenSet()100     inline bool AcceptLanguageHasBeenSet() const { return m_acceptLanguageHasBeenSet; }
101 
102     /**
103      * <p>The language code.</p> <ul> <li> <p> <code>en</code> - English (default)</p>
104      * </li> <li> <p> <code>jp</code> - Japanese</p> </li> <li> <p> <code>zh</code> -
105      * Chinese</p> </li> </ul>
106      */
SetAcceptLanguage(const Aws::String & value)107     inline void SetAcceptLanguage(const Aws::String& value) { m_acceptLanguageHasBeenSet = true; m_acceptLanguage = value; }
108 
109     /**
110      * <p>The language code.</p> <ul> <li> <p> <code>en</code> - English (default)</p>
111      * </li> <li> <p> <code>jp</code> - Japanese</p> </li> <li> <p> <code>zh</code> -
112      * Chinese</p> </li> </ul>
113      */
SetAcceptLanguage(Aws::String && value)114     inline void SetAcceptLanguage(Aws::String&& value) { m_acceptLanguageHasBeenSet = true; m_acceptLanguage = std::move(value); }
115 
116     /**
117      * <p>The language code.</p> <ul> <li> <p> <code>en</code> - English (default)</p>
118      * </li> <li> <p> <code>jp</code> - Japanese</p> </li> <li> <p> <code>zh</code> -
119      * Chinese</p> </li> </ul>
120      */
SetAcceptLanguage(const char * value)121     inline void SetAcceptLanguage(const char* value) { m_acceptLanguageHasBeenSet = true; m_acceptLanguage.assign(value); }
122 
123     /**
124      * <p>The language code.</p> <ul> <li> <p> <code>en</code> - English (default)</p>
125      * </li> <li> <p> <code>jp</code> - Japanese</p> </li> <li> <p> <code>zh</code> -
126      * Chinese</p> </li> </ul>
127      */
WithAcceptLanguage(const Aws::String & value)128     inline BatchAssociateServiceActionWithProvisioningArtifactRequest& WithAcceptLanguage(const Aws::String& value) { SetAcceptLanguage(value); return *this;}
129 
130     /**
131      * <p>The language code.</p> <ul> <li> <p> <code>en</code> - English (default)</p>
132      * </li> <li> <p> <code>jp</code> - Japanese</p> </li> <li> <p> <code>zh</code> -
133      * Chinese</p> </li> </ul>
134      */
WithAcceptLanguage(Aws::String && value)135     inline BatchAssociateServiceActionWithProvisioningArtifactRequest& WithAcceptLanguage(Aws::String&& value) { SetAcceptLanguage(std::move(value)); return *this;}
136 
137     /**
138      * <p>The language code.</p> <ul> <li> <p> <code>en</code> - English (default)</p>
139      * </li> <li> <p> <code>jp</code> - Japanese</p> </li> <li> <p> <code>zh</code> -
140      * Chinese</p> </li> </ul>
141      */
WithAcceptLanguage(const char * value)142     inline BatchAssociateServiceActionWithProvisioningArtifactRequest& WithAcceptLanguage(const char* value) { SetAcceptLanguage(value); return *this;}
143 
144   private:
145 
146     Aws::Vector<ServiceActionAssociation> m_serviceActionAssociations;
147     bool m_serviceActionAssociationsHasBeenSet;
148 
149     Aws::String m_acceptLanguage;
150     bool m_acceptLanguageHasBeenSet;
151   };
152 
153 } // namespace Model
154 } // namespace ServiceCatalog
155 } // namespace Aws
156