Package odata.msgraph.client.beta.entity
Class PolicySet
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.PolicySet
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class PolicySet extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
“A class containing the properties used for PolicySet.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPolicySet.Builder
-
Field Summary
Fields Modifier and Type Field Description protected OffsetDateTimecreatedDateTimeprotected Stringdescriptionprotected StringdisplayNameprotected ErrorCodeerrorCodeprotected List<String>guidedDeploymentTagsprotected StringguidedDeploymentTagsNextLinkprotected OffsetDateTimelastModifiedDateTimeprotected List<String>roleScopeTagsprotected StringroleScopeTagsNextLinkprotected PolicySetStatusstatus-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedPolicySet()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PolicySet.BuilderbuilderPolicySet()Returns a builder which is used to create a new instance of this class (given that this class is immutable).PolicySetAssignmentCollectionRequestgetAssignments()“Assignments of the PolicySet.”com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<OffsetDateTime>getCreatedDateTime()“Creation time of the PolicySet.”Optional<String>getDescription()“Description of the PolicySet.”Optional<String>getDisplayName()“DisplayName of the PolicySet.”Optional<ErrorCode>getErrorCode()“Error code if any occured.”com.github.davidmoten.odata.client.CollectionPage<String>getGuidedDeploymentTags()“Tags of the guided deployment”com.github.davidmoten.odata.client.CollectionPage<String>getGuidedDeploymentTags(com.github.davidmoten.odata.client.HttpRequestOptions options)“Tags of the guided deployment”PolicySetItemCollectionRequestgetItems()“Items of the PolicySet with maximum count 100.”Optional<OffsetDateTime>getLastModifiedDateTime()“Last modified time of the PolicySet.”com.github.davidmoten.odata.client.CollectionPage<String>getRoleScopeTags()“RoleScopeTags of the PolicySet”com.github.davidmoten.odata.client.CollectionPage<String>getRoleScopeTags(com.github.davidmoten.odata.client.HttpRequestOptions options)“RoleScopeTags of the PolicySet”Optional<PolicySetStatus>getStatus()“Validation/assignment status of the PolicySet.”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()PolicySetpatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)PolicySetput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()com.github.davidmoten.odata.client.ActionRequestNoReturnupdate(List<PolicySetItem> addedPolicySetItems, List<PolicySetItem> updatedPolicySetItems, List<String> deletedPolicySetItems, List<PolicySetAssignment> assignments)PolicySetwithCreatedDateTime(OffsetDateTime createdDateTime)Returns an immutable copy ofthiswith just thecreatedDateTimefield changed.PolicySetwithDescription(String description)Returns an immutable copy ofthiswith just thedescriptionfield changed.PolicySetwithDisplayName(String displayName)Returns an immutable copy ofthiswith just thedisplayNamefield changed.PolicySetwithErrorCode(ErrorCode errorCode)Returns an immutable copy ofthiswith just theerrorCodefield changed.PolicySetwithGuidedDeploymentTags(List<String> guidedDeploymentTags)Returns an immutable copy ofthiswith just theguidedDeploymentTagsfield changed.PolicySetwithLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)Returns an immutable copy ofthiswith just thelastModifiedDateTimefield changed.PolicySetwithRoleScopeTags(List<String> roleScopeTags)Returns an immutable copy ofthiswith just theroleScopeTagsfield changed.PolicySetwithStatus(PolicySetStatus status)Returns an immutable copy ofthiswith just thestatusfield changed.PolicySetwithUnmappedField(String name, String value)
-
-
-
Field Detail
-
createdDateTime
protected OffsetDateTime createdDateTime
-
description
protected String description
-
displayName
protected String displayName
-
errorCode
protected ErrorCode errorCode
-
guidedDeploymentTagsNextLink
protected String guidedDeploymentTagsNextLink
-
lastModifiedDateTime
protected OffsetDateTime lastModifiedDateTime
-
roleScopeTagsNextLink
protected String roleScopeTagsNextLink
-
status
protected PolicySetStatus status
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderPolicySet
public static PolicySet.Builder builderPolicySet()
Returns a builder which is used to create a new instance of this class (given that this class is immutable).- Returns:
- a new Builder for this class
-
getChangedFields
public com.github.davidmoten.odata.client.internal.ChangedFields getChangedFields()
- Specified by:
getChangedFieldsin interfacecom.github.davidmoten.odata.client.ODataEntityType- Overrides:
getChangedFieldsin classEntity
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classEntity
-
getCreatedDateTime
public Optional<OffsetDateTime> getCreatedDateTime()
“Creation time of the PolicySet.”- Returns:
- property createdDateTime
-
withCreatedDateTime
public PolicySet withCreatedDateTime(OffsetDateTime createdDateTime)
Returns an immutable copy ofthiswith just thecreatedDateTimefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. patch()is called (if available)on the returned object only the changed fields are submitted.“Creation time of the PolicySet.”
- Parameters:
createdDateTime- new value ofcreatedDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thecreatedDateTimefield changed
-
getDescription
public Optional<String> getDescription()
“Description of the PolicySet.”- Returns:
- property description
-
withDescription
public PolicySet withDescription(String description)
Returns an immutable copy ofthiswith just thedescriptionfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. patch()is called (if available)on the returned object only the changed fields are submitted.“Description of the PolicySet.”
- Parameters:
description- new value ofdescriptionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedescriptionfield changed
-
getDisplayName
public Optional<String> getDisplayName()
“DisplayName of the PolicySet.”- Returns:
- property displayName
-
withDisplayName
public PolicySet withDisplayName(String displayName)
Returns an immutable copy ofthiswith just thedisplayNamefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. patch()is called (if available)on the returned object only the changed fields are submitted.“DisplayName of the PolicySet.”
- Parameters:
displayName- new value ofdisplayNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedisplayNamefield changed
-
getErrorCode
public Optional<ErrorCode> getErrorCode()
“Error code if any occured.”- Returns:
- property errorCode
-
withErrorCode
public PolicySet withErrorCode(ErrorCode errorCode)
Returns an immutable copy ofthiswith just theerrorCodefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.patch()is called (if available)on the returned object only the changed fields are submitted.“Error code if any occured.”
- Parameters:
errorCode- new value oferrorCodefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theerrorCodefield changed
-
getGuidedDeploymentTags
public com.github.davidmoten.odata.client.CollectionPage<String> getGuidedDeploymentTags()
“Tags of the guided deployment”- Returns:
- property guidedDeploymentTags
-
withGuidedDeploymentTags
public PolicySet withGuidedDeploymentTags(List<String> guidedDeploymentTags)
Returns an immutable copy ofthiswith just theguidedDeploymentTagsfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.patch()is called (if available)on the returned object only the changed fields are submitted.“Tags of the guided deployment”
- Parameters:
guidedDeploymentTags- new value ofguidedDeploymentTagsfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theguidedDeploymentTagsfield changed
-
getGuidedDeploymentTags
public com.github.davidmoten.odata.client.CollectionPage<String> getGuidedDeploymentTags(com.github.davidmoten.odata.client.HttpRequestOptions options)
“Tags of the guided deployment”- Parameters:
options- specify connect and read timeouts- Returns:
- property guidedDeploymentTags
-
getLastModifiedDateTime
public Optional<OffsetDateTime> getLastModifiedDateTime()
“Last modified time of the PolicySet.”- Returns:
- property lastModifiedDateTime
-
withLastModifiedDateTime
public PolicySet withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)
Returns an immutable copy ofthiswith just thelastModifiedDateTimefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.patch()is called (if available)on the returned object only the changed fields are submitted.“Last modified time of the PolicySet.”
- Parameters:
lastModifiedDateTime- new value oflastModifiedDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thelastModifiedDateTimefield changed
-
getRoleScopeTags
public com.github.davidmoten.odata.client.CollectionPage<String> getRoleScopeTags()
“RoleScopeTags of the PolicySet”- Returns:
- property roleScopeTags
-
withRoleScopeTags
public PolicySet withRoleScopeTags(List<String> roleScopeTags)
Returns an immutable copy ofthiswith just theroleScopeTagsfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. patch()is called (if available)on the returned object only the changed fields are submitted.“RoleScopeTags of the PolicySet”
- Parameters:
roleScopeTags- new value ofroleScopeTagsfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theroleScopeTagsfield changed
-
getRoleScopeTags
public com.github.davidmoten.odata.client.CollectionPage<String> getRoleScopeTags(com.github.davidmoten.odata.client.HttpRequestOptions options)
“RoleScopeTags of the PolicySet”- Parameters:
options- specify connect and read timeouts- Returns:
- property roleScopeTags
-
getStatus
public Optional<PolicySetStatus> getStatus()
“Validation/assignment status of the PolicySet.”- Returns:
- property status
-
withStatus
public PolicySet withStatus(PolicySetStatus status)
Returns an immutable copy ofthiswith just thestatusfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.patch()is called (if available)on the returned object only the changed fields are submitted.“Validation/assignment status of the PolicySet.”
- Parameters:
status- new value ofstatusfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thestatusfield changed
-
withUnmappedField
public PolicySet withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classEntity
-
getAssignments
public PolicySetAssignmentCollectionRequest getAssignments()
“Assignments of the PolicySet.”- Returns:
- navigational property assignments
-
getItems
public PolicySetItemCollectionRequest getItems()
“Items of the PolicySet with maximum count 100.”- Returns:
- navigational property items
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classEntity
-
patch
public PolicySet patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public PolicySet put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
update
public com.github.davidmoten.odata.client.ActionRequestNoReturn update(List<PolicySetItem> addedPolicySetItems, List<PolicySetItem> updatedPolicySetItems, List<String> deletedPolicySetItems, List<PolicySetAssignment> assignments)
-
-