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/lightsail/Lightsail_EXPORTS.h>
8 #include <aws/lightsail/LightsailRequest.h>
9 #include <aws/core/utils/memory/stl/AWSString.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Lightsail
15 {
16 namespace Model
17 {
18 
19   /**
20    */
21   class AWS_LIGHTSAIL_API CreateBucketAccessKeyRequest : public LightsailRequest
22   {
23   public:
24     CreateBucketAccessKeyRequest();
25 
26     // Service request name is the Operation name which will send this request out,
27     // each operation should has unique request name, so that we can get operation's name from this request.
28     // Note: this is not true for response, multiple operations may have the same response name,
29     // so we can not get operation's name from response.
GetServiceRequestName()30     inline virtual const char* GetServiceRequestName() const override { return "CreateBucketAccessKey"; }
31 
32     Aws::String SerializePayload() const override;
33 
34     Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35 
36 
37     /**
38      * <p>The name of the bucket that the new access key will belong to, and grant
39      * access to.</p>
40      */
GetBucketName()41     inline const Aws::String& GetBucketName() const{ return m_bucketName; }
42 
43     /**
44      * <p>The name of the bucket that the new access key will belong to, and grant
45      * access to.</p>
46      */
BucketNameHasBeenSet()47     inline bool BucketNameHasBeenSet() const { return m_bucketNameHasBeenSet; }
48 
49     /**
50      * <p>The name of the bucket that the new access key will belong to, and grant
51      * access to.</p>
52      */
SetBucketName(const Aws::String & value)53     inline void SetBucketName(const Aws::String& value) { m_bucketNameHasBeenSet = true; m_bucketName = value; }
54 
55     /**
56      * <p>The name of the bucket that the new access key will belong to, and grant
57      * access to.</p>
58      */
SetBucketName(Aws::String && value)59     inline void SetBucketName(Aws::String&& value) { m_bucketNameHasBeenSet = true; m_bucketName = std::move(value); }
60 
61     /**
62      * <p>The name of the bucket that the new access key will belong to, and grant
63      * access to.</p>
64      */
SetBucketName(const char * value)65     inline void SetBucketName(const char* value) { m_bucketNameHasBeenSet = true; m_bucketName.assign(value); }
66 
67     /**
68      * <p>The name of the bucket that the new access key will belong to, and grant
69      * access to.</p>
70      */
WithBucketName(const Aws::String & value)71     inline CreateBucketAccessKeyRequest& WithBucketName(const Aws::String& value) { SetBucketName(value); return *this;}
72 
73     /**
74      * <p>The name of the bucket that the new access key will belong to, and grant
75      * access to.</p>
76      */
WithBucketName(Aws::String && value)77     inline CreateBucketAccessKeyRequest& WithBucketName(Aws::String&& value) { SetBucketName(std::move(value)); return *this;}
78 
79     /**
80      * <p>The name of the bucket that the new access key will belong to, and grant
81      * access to.</p>
82      */
WithBucketName(const char * value)83     inline CreateBucketAccessKeyRequest& WithBucketName(const char* value) { SetBucketName(value); return *this;}
84 
85   private:
86 
87     Aws::String m_bucketName;
88     bool m_bucketNameHasBeenSet;
89   };
90 
91 } // namespace Model
92 } // namespace Lightsail
93 } // namespace Aws
94