AWS SDK for C++  0.12.9
AWS SDK for C++
SimulateCustomPolicyRequest.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>
17 #include <aws/iam/IAMRequest.h>
21 
22 namespace Aws
23 {
24 namespace IAM
25 {
26 namespace Model
27 {
28 
32  {
33  public:
35  Aws::String SerializePayload() const override;
36 
54  inline const Aws::Vector<Aws::String>& GetPolicyInputList() const{ return m_policyInputList; }
55 
73  inline void SetPolicyInputList(const Aws::Vector<Aws::String>& value) { m_policyInputListHasBeenSet = true; m_policyInputList = value; }
74 
92  inline void SetPolicyInputList(Aws::Vector<Aws::String>&& value) { m_policyInputListHasBeenSet = true; m_policyInputList = value; }
93 
111  inline SimulateCustomPolicyRequest& WithPolicyInputList(const Aws::Vector<Aws::String>& value) { SetPolicyInputList(value); return *this;}
112 
130  inline SimulateCustomPolicyRequest& WithPolicyInputList(Aws::Vector<Aws::String>&& value) { SetPolicyInputList(value); return *this;}
131 
149  inline SimulateCustomPolicyRequest& AddPolicyInputList(const Aws::String& value) { m_policyInputListHasBeenSet = true; m_policyInputList.push_back(value); return *this; }
150 
168  inline SimulateCustomPolicyRequest& AddPolicyInputList(Aws::String&& value) { m_policyInputListHasBeenSet = true; m_policyInputList.push_back(value); return *this; }
169 
187  inline SimulateCustomPolicyRequest& AddPolicyInputList(const char* value) { m_policyInputListHasBeenSet = true; m_policyInputList.push_back(value); return *this; }
188 
194  inline const Aws::Vector<Aws::String>& GetActionNames() const{ return m_actionNames; }
195 
201  inline void SetActionNames(const Aws::Vector<Aws::String>& value) { m_actionNamesHasBeenSet = true; m_actionNames = value; }
202 
208  inline void SetActionNames(Aws::Vector<Aws::String>&& value) { m_actionNamesHasBeenSet = true; m_actionNames = value; }
209 
215  inline SimulateCustomPolicyRequest& WithActionNames(const Aws::Vector<Aws::String>& value) { SetActionNames(value); return *this;}
216 
222  inline SimulateCustomPolicyRequest& WithActionNames(Aws::Vector<Aws::String>&& value) { SetActionNames(value); return *this;}
223 
229  inline SimulateCustomPolicyRequest& AddActionNames(const Aws::String& value) { m_actionNamesHasBeenSet = true; m_actionNames.push_back(value); return *this; }
230 
236  inline SimulateCustomPolicyRequest& AddActionNames(Aws::String&& value) { m_actionNamesHasBeenSet = true; m_actionNames.push_back(value); return *this; }
237 
243  inline SimulateCustomPolicyRequest& AddActionNames(const char* value) { m_actionNamesHasBeenSet = true; m_actionNames.push_back(value); return *this; }
244 
261  inline const Aws::Vector<Aws::String>& GetResourceArns() const{ return m_resourceArns; }
262 
279  inline void SetResourceArns(const Aws::Vector<Aws::String>& value) { m_resourceArnsHasBeenSet = true; m_resourceArns = value; }
280 
297  inline void SetResourceArns(Aws::Vector<Aws::String>&& value) { m_resourceArnsHasBeenSet = true; m_resourceArns = value; }
298 
315  inline SimulateCustomPolicyRequest& WithResourceArns(const Aws::Vector<Aws::String>& value) { SetResourceArns(value); return *this;}
316 
333  inline SimulateCustomPolicyRequest& WithResourceArns(Aws::Vector<Aws::String>&& value) { SetResourceArns(value); return *this;}
334 
351  inline SimulateCustomPolicyRequest& AddResourceArns(const Aws::String& value) { m_resourceArnsHasBeenSet = true; m_resourceArns.push_back(value); return *this; }
352 
369  inline SimulateCustomPolicyRequest& AddResourceArns(Aws::String&& value) { m_resourceArnsHasBeenSet = true; m_resourceArns.push_back(value); return *this; }
370 
387  inline SimulateCustomPolicyRequest& AddResourceArns(const char* value) { m_resourceArnsHasBeenSet = true; m_resourceArns.push_back(value); return *this; }
388 
399  inline const Aws::String& GetResourcePolicy() const{ return m_resourcePolicy; }
400 
411  inline void SetResourcePolicy(const Aws::String& value) { m_resourcePolicyHasBeenSet = true; m_resourcePolicy = value; }
412 
423  inline void SetResourcePolicy(Aws::String&& value) { m_resourcePolicyHasBeenSet = true; m_resourcePolicy = value; }
424 
435  inline void SetResourcePolicy(const char* value) { m_resourcePolicyHasBeenSet = true; m_resourcePolicy.assign(value); }
436 
447  inline SimulateCustomPolicyRequest& WithResourcePolicy(const Aws::String& value) { SetResourcePolicy(value); return *this;}
448 
459  inline SimulateCustomPolicyRequest& WithResourcePolicy(Aws::String&& value) { SetResourcePolicy(value); return *this;}
460 
471  inline SimulateCustomPolicyRequest& WithResourcePolicy(const char* value) { SetResourcePolicy(value); return *this;}
472 
485  inline const Aws::String& GetResourceOwner() const{ return m_resourceOwner; }
486 
499  inline void SetResourceOwner(const Aws::String& value) { m_resourceOwnerHasBeenSet = true; m_resourceOwner = value; }
500 
513  inline void SetResourceOwner(Aws::String&& value) { m_resourceOwnerHasBeenSet = true; m_resourceOwner = value; }
514 
527  inline void SetResourceOwner(const char* value) { m_resourceOwnerHasBeenSet = true; m_resourceOwner.assign(value); }
528 
541  inline SimulateCustomPolicyRequest& WithResourceOwner(const Aws::String& value) { SetResourceOwner(value); return *this;}
542 
555  inline SimulateCustomPolicyRequest& WithResourceOwner(Aws::String&& value) { SetResourceOwner(value); return *this;}
556 
569  inline SimulateCustomPolicyRequest& WithResourceOwner(const char* value) { SetResourceOwner(value); return *this;}
570 
579  inline const Aws::String& GetCallerArn() const{ return m_callerArn; }
580 
589  inline void SetCallerArn(const Aws::String& value) { m_callerArnHasBeenSet = true; m_callerArn = value; }
590 
599  inline void SetCallerArn(Aws::String&& value) { m_callerArnHasBeenSet = true; m_callerArn = value; }
600 
609  inline void SetCallerArn(const char* value) { m_callerArnHasBeenSet = true; m_callerArn.assign(value); }
610 
619  inline SimulateCustomPolicyRequest& WithCallerArn(const Aws::String& value) { SetCallerArn(value); return *this;}
620 
629  inline SimulateCustomPolicyRequest& WithCallerArn(Aws::String&& value) { SetCallerArn(value); return *this;}
630 
639  inline SimulateCustomPolicyRequest& WithCallerArn(const char* value) { SetCallerArn(value); return *this;}
640 
646  inline const Aws::Vector<ContextEntry>& GetContextEntries() const{ return m_contextEntries; }
647 
653  inline void SetContextEntries(const Aws::Vector<ContextEntry>& value) { m_contextEntriesHasBeenSet = true; m_contextEntries = value; }
654 
660  inline void SetContextEntries(Aws::Vector<ContextEntry>&& value) { m_contextEntriesHasBeenSet = true; m_contextEntries = value; }
661 
667  inline SimulateCustomPolicyRequest& WithContextEntries(const Aws::Vector<ContextEntry>& value) { SetContextEntries(value); return *this;}
668 
674  inline SimulateCustomPolicyRequest& WithContextEntries(Aws::Vector<ContextEntry>&& value) { SetContextEntries(value); return *this;}
675 
681  inline SimulateCustomPolicyRequest& AddContextEntries(const ContextEntry& value) { m_contextEntriesHasBeenSet = true; m_contextEntries.push_back(value); return *this; }
682 
688  inline SimulateCustomPolicyRequest& AddContextEntries(ContextEntry&& value) { m_contextEntriesHasBeenSet = true; m_contextEntries.push_back(value); return *this; }
689 
716  inline const Aws::String& GetResourceHandlingOption() const{ return m_resourceHandlingOption; }
717 
744  inline void SetResourceHandlingOption(const Aws::String& value) { m_resourceHandlingOptionHasBeenSet = true; m_resourceHandlingOption = value; }
745 
772  inline void SetResourceHandlingOption(Aws::String&& value) { m_resourceHandlingOptionHasBeenSet = true; m_resourceHandlingOption = value; }
773 
800  inline void SetResourceHandlingOption(const char* value) { m_resourceHandlingOptionHasBeenSet = true; m_resourceHandlingOption.assign(value); }
801 
828  inline SimulateCustomPolicyRequest& WithResourceHandlingOption(const Aws::String& value) { SetResourceHandlingOption(value); return *this;}
829 
856  inline SimulateCustomPolicyRequest& WithResourceHandlingOption(Aws::String&& value) { SetResourceHandlingOption(value); return *this;}
857 
884  inline SimulateCustomPolicyRequest& WithResourceHandlingOption(const char* value) { SetResourceHandlingOption(value); return *this;}
885 
896  inline long GetMaxItems() const{ return m_maxItems; }
897 
908  inline void SetMaxItems(long value) { m_maxItemsHasBeenSet = true; m_maxItems = value; }
909 
920  inline SimulateCustomPolicyRequest& WithMaxItems(long value) { SetMaxItems(value); return *this;}
921 
928  inline const Aws::String& GetMarker() const{ return m_marker; }
929 
936  inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; }
937 
944  inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = value; }
945 
952  inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); }
953 
960  inline SimulateCustomPolicyRequest& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
961 
968  inline SimulateCustomPolicyRequest& WithMarker(Aws::String&& value) { SetMarker(value); return *this;}
969 
976  inline SimulateCustomPolicyRequest& WithMarker(const char* value) { SetMarker(value); return *this;}
977 
978  private:
979  Aws::Vector<Aws::String> m_policyInputList;
980  bool m_policyInputListHasBeenSet;
981  Aws::Vector<Aws::String> m_actionNames;
982  bool m_actionNamesHasBeenSet;
983  Aws::Vector<Aws::String> m_resourceArns;
984  bool m_resourceArnsHasBeenSet;
985  Aws::String m_resourcePolicy;
986  bool m_resourcePolicyHasBeenSet;
987  Aws::String m_resourceOwner;
988  bool m_resourceOwnerHasBeenSet;
989  Aws::String m_callerArn;
990  bool m_callerArnHasBeenSet;
991  Aws::Vector<ContextEntry> m_contextEntries;
992  bool m_contextEntriesHasBeenSet;
993  Aws::String m_resourceHandlingOption;
994  bool m_resourceHandlingOptionHasBeenSet;
995  long m_maxItems;
996  bool m_maxItemsHasBeenSet;
997  Aws::String m_marker;
998  bool m_markerHasBeenSet;
999  };
1000 
1001 } // namespace Model
1002 } // namespace IAM
1003 } // namespace Aws
const Aws::Vector< Aws::String > & GetPolicyInputList() const
SimulateCustomPolicyRequest & AddResourceArns(Aws::String &&value)
SimulateCustomPolicyRequest & WithActionNames(Aws::Vector< Aws::String > &&value)
SimulateCustomPolicyRequest & WithResourceArns(Aws::Vector< Aws::String > &&value)
Definition: ContextEntry.h:44
SimulateCustomPolicyRequest & WithCallerArn(const Aws::String &value)
SimulateCustomPolicyRequest & WithPolicyInputList(const Aws::Vector< Aws::String > &value)
SimulateCustomPolicyRequest & WithResourceOwner(const char *value)
SimulateCustomPolicyRequest & WithResourcePolicy(Aws::String &&value)
void SetPolicyInputList(Aws::Vector< Aws::String > &&value)
void SetResourceArns(Aws::Vector< Aws::String > &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
const Aws::Vector< ContextEntry > & GetContextEntries() const
SimulateCustomPolicyRequest & WithResourceHandlingOption(const char *value)
void SetResourceArns(const Aws::Vector< Aws::String > &value)
SimulateCustomPolicyRequest & WithResourceArns(const Aws::Vector< Aws::String > &value)
SimulateCustomPolicyRequest & WithMaxItems(long value)
SimulateCustomPolicyRequest & AddPolicyInputList(const Aws::String &value)
SimulateCustomPolicyRequest & AddActionNames(const Aws::String &value)
void SetPolicyInputList(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetActionNames() const
SimulateCustomPolicyRequest & WithResourceHandlingOption(const Aws::String &value)
SimulateCustomPolicyRequest & AddActionNames(const char *value)
SimulateCustomPolicyRequest & AddPolicyInputList(const char *value)
const Aws::Vector< Aws::String > & GetResourceArns() const
SimulateCustomPolicyRequest & WithCallerArn(Aws::String &&value)
SimulateCustomPolicyRequest & WithMarker(const Aws::String &value)
void SetActionNames(const Aws::Vector< Aws::String > &value)
SimulateCustomPolicyRequest & WithResourceOwner(const Aws::String &value)
void SetContextEntries(Aws::Vector< ContextEntry > &&value)
SimulateCustomPolicyRequest & WithResourceHandlingOption(Aws::String &&value)
SimulateCustomPolicyRequest & WithResourcePolicy(const Aws::String &value)
SimulateCustomPolicyRequest & WithResourcePolicy(const char *value)
SimulateCustomPolicyRequest & WithMarker(Aws::String &&value)
SimulateCustomPolicyRequest & WithResourceOwner(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
SimulateCustomPolicyRequest & WithActionNames(const Aws::Vector< Aws::String > &value)
SimulateCustomPolicyRequest & WithPolicyInputList(Aws::Vector< Aws::String > &&value)
SimulateCustomPolicyRequest & AddActionNames(Aws::String &&value)
void SetContextEntries(const Aws::Vector< ContextEntry > &value)
SimulateCustomPolicyRequest & AddResourceArns(const char *value)
SimulateCustomPolicyRequest & WithContextEntries(const Aws::Vector< ContextEntry > &value)
#define AWS_IAM_API
Definition: IAM_EXPORTS.h:34
SimulateCustomPolicyRequest & WithMarker(const char *value)
SimulateCustomPolicyRequest & AddResourceArns(const Aws::String &value)
void SetActionNames(Aws::Vector< Aws::String > &&value)
SimulateCustomPolicyRequest & WithCallerArn(const char *value)
SimulateCustomPolicyRequest & AddContextEntries(const ContextEntry &value)
SimulateCustomPolicyRequest & AddPolicyInputList(Aws::String &&value)
JSON (JavaScript Object Notation).
SimulateCustomPolicyRequest & WithContextEntries(Aws::Vector< ContextEntry > &&value)
SimulateCustomPolicyRequest & AddContextEntries(ContextEntry &&value)