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/appstream/AppStream_EXPORTS.h>
8 #include <aws/appstream/AppStreamRequest.h>
9 #include <aws/core/utils/memory/stl/AWSVector.h>
10 #include <aws/appstream/model/UserStackAssociation.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace AppStream
16 {
17 namespace Model
18 {
19 
20   /**
21    */
22   class AWS_APPSTREAM_API BatchAssociateUserStackRequest : public AppStreamRequest
23   {
24   public:
25     BatchAssociateUserStackRequest();
26 
27     // Service request name is the Operation name which will send this request out,
28     // each operation should has unique request name, so that we can get operation's name from this request.
29     // Note: this is not true for response, multiple operations may have the same response name,
30     // so we can not get operation's name from response.
GetServiceRequestName()31     inline virtual const char* GetServiceRequestName() const override { return "BatchAssociateUserStack"; }
32 
33     Aws::String SerializePayload() const override;
34 
35     Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36 
37 
38     /**
39      * <p>The list of UserStackAssociation objects.</p>
40      */
GetUserStackAssociations()41     inline const Aws::Vector<UserStackAssociation>& GetUserStackAssociations() const{ return m_userStackAssociations; }
42 
43     /**
44      * <p>The list of UserStackAssociation objects.</p>
45      */
UserStackAssociationsHasBeenSet()46     inline bool UserStackAssociationsHasBeenSet() const { return m_userStackAssociationsHasBeenSet; }
47 
48     /**
49      * <p>The list of UserStackAssociation objects.</p>
50      */
SetUserStackAssociations(const Aws::Vector<UserStackAssociation> & value)51     inline void SetUserStackAssociations(const Aws::Vector<UserStackAssociation>& value) { m_userStackAssociationsHasBeenSet = true; m_userStackAssociations = value; }
52 
53     /**
54      * <p>The list of UserStackAssociation objects.</p>
55      */
SetUserStackAssociations(Aws::Vector<UserStackAssociation> && value)56     inline void SetUserStackAssociations(Aws::Vector<UserStackAssociation>&& value) { m_userStackAssociationsHasBeenSet = true; m_userStackAssociations = std::move(value); }
57 
58     /**
59      * <p>The list of UserStackAssociation objects.</p>
60      */
WithUserStackAssociations(const Aws::Vector<UserStackAssociation> & value)61     inline BatchAssociateUserStackRequest& WithUserStackAssociations(const Aws::Vector<UserStackAssociation>& value) { SetUserStackAssociations(value); return *this;}
62 
63     /**
64      * <p>The list of UserStackAssociation objects.</p>
65      */
WithUserStackAssociations(Aws::Vector<UserStackAssociation> && value)66     inline BatchAssociateUserStackRequest& WithUserStackAssociations(Aws::Vector<UserStackAssociation>&& value) { SetUserStackAssociations(std::move(value)); return *this;}
67 
68     /**
69      * <p>The list of UserStackAssociation objects.</p>
70      */
AddUserStackAssociations(const UserStackAssociation & value)71     inline BatchAssociateUserStackRequest& AddUserStackAssociations(const UserStackAssociation& value) { m_userStackAssociationsHasBeenSet = true; m_userStackAssociations.push_back(value); return *this; }
72 
73     /**
74      * <p>The list of UserStackAssociation objects.</p>
75      */
AddUserStackAssociations(UserStackAssociation && value)76     inline BatchAssociateUserStackRequest& AddUserStackAssociations(UserStackAssociation&& value) { m_userStackAssociationsHasBeenSet = true; m_userStackAssociations.push_back(std::move(value)); return *this; }
77 
78   private:
79 
80     Aws::Vector<UserStackAssociation> m_userStackAssociations;
81     bool m_userStackAssociationsHasBeenSet;
82   };
83 
84 } // namespace Model
85 } // namespace AppStream
86 } // namespace Aws
87