Class CreateV2PolicyOptions
- java.lang.Object
-
- com.ibm.cloud.sdk.core.service.model.GenericModel
-
- com.ibm.cloud.platform_services.iam_policy_management.v1.model.CreateV2PolicyOptions
-
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class CreateV2PolicyOptions extends com.ibm.cloud.sdk.core.service.model.GenericModelThe createV2Policy options.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCreateV2PolicyOptions.BuilderBuilder.static interfaceCreateV2PolicyOptions.TypeThe policy type; either 'access' or 'authorization'.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringacceptLanguage()Gets the acceptLanguage.Controlcontrol()Gets the control.java.lang.Stringdescription()Gets the description.CreateV2PolicyOptions.BuildernewBuilder()New builder.java.lang.Stringpattern()Gets the pattern.V2PolicyResourceresource()Gets the resource.V2PolicyRulerule()Gets the rule.V2PolicySubjectsubject()Gets the subject.java.lang.Stringtype()Gets the type.
-
-
-
Method Detail
-
newBuilder
public CreateV2PolicyOptions.Builder newBuilder()
New builder.- Returns:
- a CreateV2PolicyOptions builder
-
control
public Control control()
Gets the control. Specifies the type of access that is granted by the policy.- Returns:
- the control
-
type
public java.lang.String type()
Gets the type. The policy type; either 'access' or 'authorization'.- Returns:
- the type
-
description
public java.lang.String description()
Gets the description. Description of the policy.- Returns:
- the description
-
subject
public V2PolicySubject subject()
Gets the subject. The subject attributes for whom the policy grants access.- Returns:
- the subject
-
resource
public V2PolicyResource resource()
Gets the resource. The resource attributes to which the policy grants access.- Returns:
- the resource
-
pattern
public java.lang.String pattern()
Gets the pattern. Indicates pattern of rule, either 'time-based-conditions:once', 'time-based-conditions:weekly:all-day', or 'time-based-conditions:weekly:custom-hours'.- Returns:
- the pattern
-
rule
public V2PolicyRule rule()
Gets the rule. Additional access conditions associated with the policy.- Returns:
- the rule
-
acceptLanguage
public java.lang.String acceptLanguage()
Gets the acceptLanguage. Language code for translations * `default` - English * `de` - German (Standard) * `en` - English * `es` - Spanish (Spain) * `fr` - French (Standard) * `it` - Italian (Standard) * `ja` - Japanese * `ko` - Korean * `pt-br` - Portuguese (Brazil) * `zh-cn` - Chinese (Simplified, PRC) * `zh-tw` - (Chinese, Taiwan).- Returns:
- the acceptLanguage
-
-