Package com.exoscale.sdk.model
Class CreateIamRoleRequest
- java.lang.Object
-
- com.exoscale.sdk.model.CreateIamRoleRequest
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.4.0") public class CreateIamRoleRequest extends Object
CreateIamRoleRequest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CreateIamRoleRequest.PermissionsEnum
Gets or Sets permissions
-
Field Summary
Fields Modifier and Type Field Description static String
JSON_PROPERTY_DESCRIPTION
static String
JSON_PROPERTY_EDITABLE
static String
JSON_PROPERTY_LABELS
static String
JSON_PROPERTY_NAME
static String
JSON_PROPERTY_PERMISSIONS
static String
JSON_PROPERTY_POLICY
-
Constructor Summary
Constructors Constructor Description CreateIamRoleRequest()
-
Method Summary
-
-
-
Field Detail
-
JSON_PROPERTY_NAME
public static final String JSON_PROPERTY_NAME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DESCRIPTION
public static final String JSON_PROPERTY_DESCRIPTION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PERMISSIONS
public static final String JSON_PROPERTY_PERMISSIONS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_EDITABLE
public static final String JSON_PROPERTY_EDITABLE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_LABELS
public static final String JSON_PROPERTY_LABELS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_POLICY
public static final String JSON_PROPERTY_POLICY
- See Also:
- Constant Field Values
-
-
Method Detail
-
name
public CreateIamRoleRequest name(String name)
-
getName
@Nonnull public String getName()
IAM Role name- Returns:
- name
-
setName
public void setName(String name)
-
description
public CreateIamRoleRequest description(String description)
-
getDescription
@Nullable public String getDescription()
IAM Role description- Returns:
- description
-
setDescription
public void setDescription(String description)
-
permissions
public CreateIamRoleRequest permissions(Set<CreateIamRoleRequest.PermissionsEnum> permissions)
-
addPermissionsItem
public CreateIamRoleRequest addPermissionsItem(CreateIamRoleRequest.PermissionsEnum permissionsItem)
-
getPermissions
@Nullable public Set<CreateIamRoleRequest.PermissionsEnum> getPermissions()
IAM Role permissions- Returns:
- permissions
-
setPermissions
public void setPermissions(Set<CreateIamRoleRequest.PermissionsEnum> permissions)
-
editable
public CreateIamRoleRequest editable(Boolean editable)
-
getEditable
@Nullable public Boolean getEditable()
Sets if the IAM Role Policy is editable or not (default: true). This setting cannot be changed after creation- Returns:
- editable
-
setEditable
public void setEditable(Boolean editable)
-
labels
public CreateIamRoleRequest labels(Map<String,String> labels)
-
putLabelsItem
public CreateIamRoleRequest putLabelsItem(String key, String labelsItem)
-
policy
public CreateIamRoleRequest policy(IamPolicy policy)
-
getPolicy
@Nullable public IamPolicy getPolicy()
Get policy- Returns:
- policy
-
setPolicy
public void setPolicy(IamPolicy policy)
-
equals
public boolean equals(Object o)
Return true if this create_iam_role_request object is equal to o.
-
toUrlQueryString
public String toUrlQueryString()
Convert the instance into URL query string.- Returns:
- URL query string
-
-