AWS SDK for C++  0.14.3
AWS SDK for C++
ResourceIdentifier.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
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Json
26 {
27  class JsonValue;
28 } // namespace Json
29 } // namespace Utils
30 namespace ConfigService
31 {
32 namespace Model
33 {
34 
41  {
42  public:
45  ResourceIdentifier& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
46  Aws::Utils::Json::JsonValue Jsonize() const;
47 
51  inline const ResourceType& GetResourceType() const{ return m_resourceType; }
52 
56  inline void SetResourceType(const ResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
57 
61  inline void SetResourceType(ResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
62 
66  inline ResourceIdentifier& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;}
67 
71  inline ResourceIdentifier& WithResourceType(ResourceType&& value) { SetResourceType(value); return *this;}
72 
76  inline const Aws::String& GetResourceId() const{ return m_resourceId; }
77 
81  inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
82 
86  inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
87 
91  inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
92 
96  inline ResourceIdentifier& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
97 
101  inline ResourceIdentifier& WithResourceId(Aws::String&& value) { SetResourceId(value); return *this;}
102 
106  inline ResourceIdentifier& WithResourceId(const char* value) { SetResourceId(value); return *this;}
107 
111  inline const Aws::String& GetResourceName() const{ return m_resourceName; }
112 
116  inline void SetResourceName(const Aws::String& value) { m_resourceNameHasBeenSet = true; m_resourceName = value; }
117 
121  inline void SetResourceName(Aws::String&& value) { m_resourceNameHasBeenSet = true; m_resourceName = value; }
122 
126  inline void SetResourceName(const char* value) { m_resourceNameHasBeenSet = true; m_resourceName.assign(value); }
127 
131  inline ResourceIdentifier& WithResourceName(const Aws::String& value) { SetResourceName(value); return *this;}
132 
136  inline ResourceIdentifier& WithResourceName(Aws::String&& value) { SetResourceName(value); return *this;}
137 
141  inline ResourceIdentifier& WithResourceName(const char* value) { SetResourceName(value); return *this;}
142 
146  inline const Aws::Utils::DateTime& GetResourceDeletionTime() const{ return m_resourceDeletionTime; }
147 
151  inline void SetResourceDeletionTime(const Aws::Utils::DateTime& value) { m_resourceDeletionTimeHasBeenSet = true; m_resourceDeletionTime = value; }
152 
156  inline void SetResourceDeletionTime(Aws::Utils::DateTime&& value) { m_resourceDeletionTimeHasBeenSet = true; m_resourceDeletionTime = value; }
157 
161  inline ResourceIdentifier& WithResourceDeletionTime(const Aws::Utils::DateTime& value) { SetResourceDeletionTime(value); return *this;}
162 
166  inline ResourceIdentifier& WithResourceDeletionTime(Aws::Utils::DateTime&& value) { SetResourceDeletionTime(value); return *this;}
167 
168  private:
169  ResourceType m_resourceType;
170  bool m_resourceTypeHasBeenSet;
171  Aws::String m_resourceId;
172  bool m_resourceIdHasBeenSet;
173  Aws::String m_resourceName;
174  bool m_resourceNameHasBeenSet;
175  Aws::Utils::DateTime m_resourceDeletionTime;
176  bool m_resourceDeletionTimeHasBeenSet;
177  };
178 
179 } // namespace Model
180 } // namespace ConfigService
181 } // namespace Aws
ResourceIdentifier & WithResourceName(const Aws::String &value)
ResourceIdentifier & WithResourceType(const ResourceType &value)
ResourceIdentifier & WithResourceName(Aws::String &&value)
ResourceIdentifier & WithResourceDeletionTime(const Aws::Utils::DateTime &value)
ResourceIdentifier & WithResourceId(const char *value)
ResourceIdentifier & WithResourceDeletionTime(Aws::Utils::DateTime &&value)
const ResourceType & GetResourceType() const
ResourceIdentifier & WithResourceType(ResourceType &&value)
void SetResourceType(const ResourceType &value)
ResourceIdentifier & WithResourceName(const char *value)
const Aws::Utils::DateTime & GetResourceDeletionTime() const
ResourceIdentifier & WithResourceId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetResourceDeletionTime(Aws::Utils::DateTime &&value)
void SetResourceDeletionTime(const Aws::Utils::DateTime &value)
#define AWS_CONFIGSERVICE_API
void SetResourceName(const Aws::String &value)
ResourceIdentifier & WithResourceId(Aws::String &&value)
void SetResourceId(const Aws::String &value)
JSON (JavaScript Object Notation).