AWS SDK for C++  0.14.3
AWS SDK for C++
Resource.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
18 
19 namespace Aws
20 {
21 namespace Utils
22 {
23 namespace Json
24 {
25  class JsonValue;
26 } // namespace Json
27 } // namespace Utils
28 namespace CloudTrail
29 {
30 namespace Model
31 {
32 
37  {
38  public:
39  Resource();
40  Resource(const Aws::Utils::Json::JsonValue& jsonValue);
41  Resource& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
42  Aws::Utils::Json::JsonValue Jsonize() const;
43 
53  inline const Aws::String& GetResourceType() const{ return m_resourceType; }
54 
64  inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
65 
75  inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
76 
86  inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); }
87 
97  inline Resource& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;}
98 
108  inline Resource& WithResourceType(Aws::String&& value) { SetResourceType(value); return *this;}
109 
119  inline Resource& WithResourceType(const char* value) { SetResourceType(value); return *this;}
120 
127  inline const Aws::String& GetResourceName() const{ return m_resourceName; }
128 
135  inline void SetResourceName(const Aws::String& value) { m_resourceNameHasBeenSet = true; m_resourceName = value; }
136 
143  inline void SetResourceName(Aws::String&& value) { m_resourceNameHasBeenSet = true; m_resourceName = value; }
144 
151  inline void SetResourceName(const char* value) { m_resourceNameHasBeenSet = true; m_resourceName.assign(value); }
152 
159  inline Resource& WithResourceName(const Aws::String& value) { SetResourceName(value); return *this;}
160 
167  inline Resource& WithResourceName(Aws::String&& value) { SetResourceName(value); return *this;}
168 
175  inline Resource& WithResourceName(const char* value) { SetResourceName(value); return *this;}
176 
177  private:
178  Aws::String m_resourceType;
179  bool m_resourceTypeHasBeenSet;
180  Aws::String m_resourceName;
181  bool m_resourceNameHasBeenSet;
182  };
183 
184 } // namespace Model
185 } // namespace CloudTrail
186 } // namespace Aws
Resource & WithResourceType(Aws::String &&value)
Definition: Resource.h:108
void SetResourceType(const Aws::String &value)
Definition: Resource.h:64
Resource & WithResourceType(const Aws::String &value)
Definition: Resource.h:97
Resource & WithResourceName(const Aws::String &value)
Definition: Resource.h:159
Resource & WithResourceName(const char *value)
Definition: Resource.h:175
void SetResourceName(Aws::String &&value)
Definition: Resource.h:143
void SetResourceType(Aws::String &&value)
Definition: Resource.h:75
Resource & WithResourceType(const char *value)
Definition: Resource.h:119
void SetResourceName(const char *value)
Definition: Resource.h:151
void SetResourceType(const char *value)
Definition: Resource.h:86
void SetResourceName(const Aws::String &value)
Definition: Resource.h:135
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Resource & WithResourceName(Aws::String &&value)
Definition: Resource.h:167
#define AWS_CLOUDTRAIL_API
const Aws::String & GetResourceType() const
Definition: Resource.h:53
const Aws::String & GetResourceName() const
Definition: Resource.h:127
JSON (JavaScript Object Notation).