AWS SDK for C++  0.12.9
AWS SDK for C++
DescribeDocumentPermissionRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/ssm/SSM_EXPORTS.h>
17 #include <aws/ssm/SSMRequest.h>
20 
21 namespace Aws
22 {
23 namespace SSM
24 {
25 namespace Model
26 {
27 
31  {
32  public:
34  Aws::String SerializePayload() const override;
35 
36  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37 
41  inline const Aws::String& GetName() const{ return m_name; }
42 
46  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
47 
51  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
52 
56  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
57 
61  inline DescribeDocumentPermissionRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
62 
66  inline DescribeDocumentPermissionRequest& WithName(Aws::String&& value) { SetName(value); return *this;}
67 
71  inline DescribeDocumentPermissionRequest& WithName(const char* value) { SetName(value); return *this;}
72 
77  inline const DocumentPermissionType& GetPermissionType() const{ return m_permissionType; }
78 
83  inline void SetPermissionType(const DocumentPermissionType& value) { m_permissionTypeHasBeenSet = true; m_permissionType = value; }
84 
89  inline void SetPermissionType(DocumentPermissionType&& value) { m_permissionTypeHasBeenSet = true; m_permissionType = value; }
90 
95  inline DescribeDocumentPermissionRequest& WithPermissionType(const DocumentPermissionType& value) { SetPermissionType(value); return *this;}
96 
101  inline DescribeDocumentPermissionRequest& WithPermissionType(DocumentPermissionType&& value) { SetPermissionType(value); return *this;}
102 
103  private:
104  Aws::String m_name;
105  bool m_nameHasBeenSet;
106  DocumentPermissionType m_permissionType;
107  bool m_permissionTypeHasBeenSet;
108  };
109 
110 } // namespace Model
111 } // namespace SSM
112 } // namespace Aws
DescribeDocumentPermissionRequest & WithPermissionType(const DocumentPermissionType &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
DescribeDocumentPermissionRequest & WithName(const char *value)
DescribeDocumentPermissionRequest & WithName(const Aws::String &value)
DescribeDocumentPermissionRequest & WithName(Aws::String &&value)
DescribeDocumentPermissionRequest & WithPermissionType(DocumentPermissionType &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_SSM_API
Definition: SSM_EXPORTS.h:34
JSON (JavaScript Object Notation).