Class AgreementFileData

java.lang.Object
com.microsoft.graph.models.AgreementFileData
All Implemented Interfaces:
com.microsoft.graph.serializer.IJsonBackedObject

public class AgreementFileData extends Object implements com.microsoft.graph.serializer.IJsonBackedObject
The class for the Agreement File Data.
  • Field Details

    • oDataType

      @SerializedName("@odata.type") @Expose @Nullable public String oDataType
      the OData type of the object as returned by the service
    • data

      @SerializedName(value="data", alternate="Data") @Expose @Nullable public byte[] data
      The Data. Data that represents the terms of use PDF document. Read-only. Note: You can use the .NET Convert.ToBase64String method to convert your file to binary data for uploading using the Create agreements API. A sample syntax using this method in PowerShell is [convert]::ToBase64String((Get-Content -path 'your_file_path' -Encoding byte)).
  • Constructor Details

    • AgreementFileData

      public AgreementFileData()
  • Method Details

    • additionalDataManager

      @Nonnull public final com.microsoft.graph.serializer.AdditionalDataManager additionalDataManager()
      Specified by:
      additionalDataManager in interface com.microsoft.graph.serializer.IJsonBackedObject
    • setRawObject

      public void setRawObject(@Nonnull com.microsoft.graph.serializer.ISerializer serializer, @Nonnull com.google.gson.JsonObject json)
      Sets the raw JSON object
      Specified by:
      setRawObject in interface com.microsoft.graph.serializer.IJsonBackedObject
      Parameters:
      serializer - the serializer
      json - the JSON object to set this object to