AWS SDK for C++  0.12.9
AWS SDK for C++
PolicyGroup.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/iam/IAM_EXPORTS.h>
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Xml
25 {
26  class XmlNode;
27 } // namespace Xml
28 } // namespace Utils
29 namespace IAM
30 {
31 namespace Model
32 {
33 
43  {
44  public:
45  PolicyGroup();
46  PolicyGroup(const Aws::Utils::Xml::XmlNode& xmlNode);
47  PolicyGroup& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
48 
49  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
50  void OutputToStream(Aws::OStream& oStream, const char* location) const;
51 
55  inline const Aws::String& GetGroupName() const{ return m_groupName; }
56 
60  inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; }
61 
65  inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = value; }
66 
70  inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); }
71 
75  inline PolicyGroup& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;}
76 
80  inline PolicyGroup& WithGroupName(Aws::String&& value) { SetGroupName(value); return *this;}
81 
85  inline PolicyGroup& WithGroupName(const char* value) { SetGroupName(value); return *this;}
86 
93  inline const Aws::String& GetGroupId() const{ return m_groupId; }
94 
101  inline void SetGroupId(const Aws::String& value) { m_groupIdHasBeenSet = true; m_groupId = value; }
102 
109  inline void SetGroupId(Aws::String&& value) { m_groupIdHasBeenSet = true; m_groupId = value; }
110 
117  inline void SetGroupId(const char* value) { m_groupIdHasBeenSet = true; m_groupId.assign(value); }
118 
125  inline PolicyGroup& WithGroupId(const Aws::String& value) { SetGroupId(value); return *this;}
126 
133  inline PolicyGroup& WithGroupId(Aws::String&& value) { SetGroupId(value); return *this;}
134 
141  inline PolicyGroup& WithGroupId(const char* value) { SetGroupId(value); return *this;}
142 
143  private:
144  Aws::String m_groupName;
145  bool m_groupNameHasBeenSet;
146  Aws::String m_groupId;
147  bool m_groupIdHasBeenSet;
148  };
149 
150 } // namespace Model
151 } // namespace IAM
152 } // namespace Aws
PolicyGroup & WithGroupId(const Aws::String &value)
Definition: PolicyGroup.h:125
void SetGroupId(Aws::String &&value)
Definition: PolicyGroup.h:109
PolicyGroup & WithGroupId(const char *value)
Definition: PolicyGroup.h:141
const Aws::String & GetGroupName() const
Definition: PolicyGroup.h:55
void SetGroupId(const char *value)
Definition: PolicyGroup.h:117
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
void SetGroupName(const char *value)
Definition: PolicyGroup.h:70
PolicyGroup & WithGroupId(Aws::String &&value)
Definition: PolicyGroup.h:133
const Aws::String & GetGroupId() const
Definition: PolicyGroup.h:93
void SetGroupName(const Aws::String &value)
Definition: PolicyGroup.h:60
void SetGroupName(Aws::String &&value)
Definition: PolicyGroup.h:65
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
PolicyGroup & WithGroupName(const Aws::String &value)
Definition: PolicyGroup.h:75
void SetGroupId(const Aws::String &value)
Definition: PolicyGroup.h:101
#define AWS_IAM_API
Definition: IAM_EXPORTS.h:34
PolicyGroup & WithGroupName(const char *value)
Definition: PolicyGroup.h:85
PolicyGroup & WithGroupName(Aws::String &&value)
Definition: PolicyGroup.h:80
JSON (JavaScript Object Notation).